integrate config refactor
parent
566af56ad0
commit
596a140956
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 *group = "ryan";
|
||||
|
||||
|
|
@ -9,19 +15,21 @@ static const char *colorname[NUMCOLS] = {
|
|||
[FAILED] = "#CC3333", /* wrong password */
|
||||
};
|
||||
|
||||
/*
|
||||
* Xresources preferences to load at startup
|
||||
*/
|
||||
/* Xresources preferences to load at startup */
|
||||
ResourcePref resources[] = {
|
||||
{ "background", STRING, &colorname[BACKGROUND] },
|
||||
{ "fadeColor", STRING, &colorname[INIT] },
|
||||
{ "accentColor", STRING, &colorname[INPUT] },
|
||||
{ "alertColor", STRING, &colorname[FAILED] },
|
||||
{ "background", STRING, &colorname[BACKGROUND] },
|
||||
{ "foreground", STRING, &colorname[INIT] },
|
||||
{ "accentColor", STRING, &colorname[INPUT] },
|
||||
{ "alertColor", STRING, &colorname[FAILED] },
|
||||
};
|
||||
|
||||
/* treat a cleared input like a wrong password (color) */
|
||||
static const int failonclear = 1;
|
||||
/* Configure visual effects */
|
||||
#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 logow = 12; /* Grid width and height for right center alignment*/
|
||||
static const int logoh = 6;
|
||||
|
|
@ -37,15 +45,3 @@ static XRectangle rectangles[9] = {
|
|||
{9, 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