integrate config refactor
parent
06c8f1a91a
commit
255e3d0f87
40
config.h
40
config.h
|
|
@ -1,4 +1,10 @@
|
||||||
/* user and group to drop privileges to */
|
/* Treat a cleared input like a wrong password (color) */
|
||||||
|
static const int failonclear = 0;
|
||||||
|
|
||||||
|
/* Time in seconds before the monitor shuts down */
|
||||||
|
static const int monitortime = 30;
|
||||||
|
|
||||||
|
/* User and group to drop privileges to */
|
||||||
static const char *user = "ryan";
|
static const char *user = "ryan";
|
||||||
static const char *group = "ryan";
|
static const char *group = "ryan";
|
||||||
|
|
||||||
|
|
@ -9,19 +15,21 @@ static const char *colorname[NUMCOLS] = {
|
||||||
[FAILED] = "#CC3333", /* wrong password */
|
[FAILED] = "#CC3333", /* wrong password */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/* Xresources preferences to load at startup */
|
||||||
* Xresources preferences to load at startup
|
|
||||||
*/
|
|
||||||
ResourcePref resources[] = {
|
ResourcePref resources[] = {
|
||||||
{ "background", STRING, &colorname[BACKGROUND] },
|
{ "background", STRING, &colorname[BACKGROUND] },
|
||||||
{ "fadeColor", STRING, &colorname[INIT] },
|
{ "foreground", STRING, &colorname[INIT] },
|
||||||
{ "accentColor", STRING, &colorname[INPUT] },
|
{ "accentColor", STRING, &colorname[INPUT] },
|
||||||
{ "alertColor", STRING, &colorname[FAILED] },
|
{ "alertColor", STRING, &colorname[FAILED] },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* treat a cleared input like a wrong password (color) */
|
/* Configure visual effects */
|
||||||
static const int failonclear = 1;
|
#define BLUR 1
|
||||||
|
#define PIXELATION 0
|
||||||
|
static const int blurRadius = 10;
|
||||||
|
static const int pixelSize = 1;
|
||||||
|
|
||||||
|
/* Configure the logo */
|
||||||
static const int logosize = 75;
|
static const int logosize = 75;
|
||||||
static const int logow = 12; /* Grid width and height for right center alignment*/
|
static const int logow = 12; /* Grid width and height for right center alignment*/
|
||||||
static const int logoh = 6;
|
static const int logoh = 6;
|
||||||
|
|
@ -37,15 +45,3 @@ static XRectangle rectangles[9] = {
|
||||||
{9, 4, 1, 2},
|
{9, 4, 1, 2},
|
||||||
{11,4, 1, 2},
|
{11,4, 1, 2},
|
||||||
};
|
};
|
||||||
|
|
||||||
/*Enable blur*/
|
|
||||||
#define BLUR
|
|
||||||
/*Set blur radius*/
|
|
||||||
static const int blurRadius=5;
|
|
||||||
/*Enable Pixelation*/
|
|
||||||
//#define PIXELATION
|
|
||||||
/*Set pixelation radius*/
|
|
||||||
static const int pixelSize=0;
|
|
||||||
|
|
||||||
/* time in seconds before the monitor shuts down */
|
|
||||||
static const int monitortime = 5;
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue