-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.def.h
45 lines (36 loc) · 1.43 KB
/
config.def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* user and group to drop privileges to */
static const char *user = "nobody";
static const char *group = "nobody";
static const char *colorname[NUMCOLS] = {
[BG] = "#111111", /* after initialization */
[INIT] = "#111111", /* after initialization */
[INPUT] = "#5180e9", /* during input */
[FAILED] = "#CC3333", /* wrong password */
[CAPS] = "#ffff00", /* CapsLock on */
[BLOCKS] = "#5511ee", /* Blocks (key feedback) */
};
/*
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
{ "background", STRING, &colorname[BG] },
{ "color0", STRING, &colorname[INIT] },
{ "accent", STRING, &colorname[INPUT] },
{ "color1", STRING, &colorname[FAILED] },
{ "color3", STRING, &colorname[CAPS] },
{ "accent", STRING, &colorname[BLOCKS] },
};
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 0;
/* default message */
static const char * message = "What's the password, dipshit?";
/* text color */
static const char * text_color = "#4e3aA3";
/* font */
static const char * font_name = "-misc-cozettevector-medium-r-normal--0-0-130-130-p-0-iso10646-1";
// The height of the bar
static const unsigned int bar_height = 15;
// Number of blocks/divisions of the bar for key feedback
static const unsigned int blocks_count = 10;
// Bar position (BAR_TOP or BAR_BOTTOM)
static const unsigned int bar_position = BAR_TOP;