add/change some xresources defentitions

This commit is contained in:
Jakub 2023-01-03 11:41:53 -05:00
parent 3055f368fe
commit 983851a660

View File

@ -10,16 +10,6 @@ static const char *colorname[NUMCOLS] = {
[CAPS] = "yellow", /* CapsLock on */ [CAPS] = "yellow", /* CapsLock on */
}; };
/*
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
{ "color0", STRING, &colorname[INIT] },
{ "color4", STRING, &colorname[INPUT] },
{ "color1", STRING, &colorname[FAILED] },
{ "color3", STRING, &colorname[CAPS] },
};
/* treat a cleared input like a wrong password (color) */ /* treat a cleared input like a wrong password (color) */
static const int failonclear = 1; static const int failonclear = 1;
@ -42,8 +32,19 @@ static XRectangle rectangles[9] = {
/*Enable blur*/ /*Enable blur*/
#define BLUR #define BLUR
/*Set blur radius*/ /*Set blur radius*/
static const int blurRadius=5; static int blurRadius=5;
/*Enable Pixelation*/ /*Enable Pixelation*/
//#define PIXELATION //#define PIXELATION
/*Set pixelation radius*/ /*Set pixelation radius*/
static const int pixelSize=0; static const int pixelSize=0;
/*
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
{ "initcolor", STRING, &colorname[INIT] },
{ "inputcolor", STRING, &colorname[INPUT] },
{ "failcolor", STRING, &colorname[FAILED] },
{ "capscolor", STRING, &colorname[CAPS] },
{ "blurradius", INTEGER, &blurRadius },
};