43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
/* user and group to drop privileges to */
|
|
static const char *user = "nobody";
|
|
static const char *group = "nobody"; // use "nobody" for arch
|
|
|
|
static const char *colorname[NUMCOLS] = {
|
|
[INIT] = "black", /* after initialization */
|
|
[INPUT] = "#005577", /* during input */
|
|
[FAILED] = "#CC3333", /* wrong password */
|
|
[CAPS] = "red", /* CapsLock on */
|
|
[BLOCKS] = "#ffffff", /* key feedback block */
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
* Xresources preferences to load at startup
|
|
*/
|
|
ResourcePref resources[] = {
|
|
{ "color0", STRING, &colorname[INIT] },
|
|
{ "color4", STRING, &colorname[INPUT] },
|
|
{ "color1", STRING, &colorname[FAILED] },
|
|
{ "color3", STRING, &colorname[CAPS] },
|
|
};
|
|
|
|
/* lock screen opacity */
|
|
static const float alpha = 0.9;
|
|
|
|
/* treat a cleared input like a wrong password (color) */
|
|
static const int failonclear = 1;
|
|
|
|
/* time in seconds before the monitor shuts down */
|
|
static const int monitortime = 5;
|
|
|
|
static short int blocks_enabled = 1; // 0 = don't show blocks
|
|
static const int blocks_width = 0; // 0 = full width
|
|
static const int blocks_height = 16;
|
|
|
|
// position
|
|
static const int blocks_x = 0;
|
|
static const int blocks_y = 0;
|
|
|
|
// Number of blocks
|
|
static const int blocks_count = 10;
|