config.def.h (1219B)
1 /* user and group to drop privileges to */ 2 //static const char *user = "nobody"; 3 //static const char *group = "nobody"; 4 5 static const char *colorname[NUMCOLS] = { 6 [BACKGROUND] = "black", /* after initialization */ 7 [INIT] = "black", /* after initialization */ 8 [INPUT] = "#005577", /* during input */ 9 [FAILED] = "#861a22", /* wrong password */ 10 [CAPS] = "#ff00ff", /* CapsLock on */ 11 }; 12 13 /* 14 * Xresources preferences to load at startup 15 */ 16 ResourcePref resources[] = { 17 { "color0", STRING, &colorname[INIT] }, 18 { "color4", STRING, &colorname[INPUT] }, 19 { "color1", STRING, &colorname[FAILED] }, 20 { "color3", STRING, &colorname[CAPS] }, 21 }; 22 23 /* treat a cleared input like a wrong password (color) */ 24 static const int failonclear = 1; 25 26 /* insert grid pattern with scale 1:1, the size can be changed with logosize */ 27 static const int logosize = 75; 28 static const int logow = 12; /* grid width and height for right center alignment*/ 29 static const int logoh = 6; 30 31 static XRectangle rectangles[9] = { 32 /* x y w h */ 33 { 0, 3, 1, 3 }, 34 { 1, 3, 2, 1 }, 35 { 0, 5, 8, 1 }, 36 { 3, 0, 1, 5 }, 37 { 5, 3, 1, 2 }, 38 { 7, 3, 1, 2 }, 39 { 8, 3, 4, 1 }, 40 { 9, 4, 1, 2 }, 41 { 11, 4, 1, 2 }, 42 43 };