config.h (2285B)
1 /* user and group to drop privileges to */ 2 static const char *user = "mika"; 3 static const char *group = "mika"; 4 5 static const char *colorname[NUMCOLS] = { 6 [BACKGROUND] = "black", /* after initialization */ 7 [INIT] = "#A96C8A", /* after initialization */ 8 [INPUT] = "#A96C8A", /* during input */ 9 [FAILED] = "#2d2d2d", /* wrong password */ 10 [CAPS] = "#6CA98A", /* CapsLock on */ 11 }; 12 13 /* treat a cleared input like a wrong password (color) */ 14 static int failonclear = 1; 15 16 static int monitortime = 600; 17 18 static int logosize = 50; 19 static int logow = 9; /* Grid width and height for right center alignment*/ 20 static int logoh = 6; 21 22 /* Setup specific draw on two monitors should be 0 false or 1 true */ 23 24 static int draw_on_two= 1; 25 26 static XRectangle rectangles_double[18] = { 27 /* x y w h */ 28 { 0, 4, 1, 2 }, 29 { 1, 2, 1, 2 }, 30 { 2, 0, 1, 2 }, 31 { 4, 0, 1, 6 }, 32 { 4, 0, 3, 1 }, 33 { 4, 5, 3, 1 }, 34 { 6, 0, 1, 6 }, 35 // 36 { -40, 4, 1, 2 }, 37 { -39, 2, 1, 2 }, 38 { -38, 0, 1, 2 }, 39 { -36, 0, 1, 6 }, 40 { -36, 0, 3, 1 }, 41 { -36, 5, 3, 1 }, 42 { -34, 0, 1, 6 }, 43 }; 44 45 static XRectangle rectangles[18] = { 46 /* x y w h */ 47 { 0, 4, 1, 2 }, 48 { 1, 2, 1, 2 }, 49 { 2, 0, 1, 2 }, 50 { 4, 0, 1, 6 }, 51 { 4, 0, 3, 1 }, 52 { 4, 5, 3, 1 }, 53 { 6, 0, 1, 6 }, 54 { 0, 4, 1, 2 }, 55 { 1, 2, 1, 2 }, 56 { 2, 0, 1, 2 }, 57 { 4, 0, 1, 6 }, 58 { 4, 0, 3, 1 }, 59 { 4, 5, 3, 1 }, 60 { 6, 0, 1, 6 }, 61 }; 62 63 /*Enable blur*/ 64 #define BLUR 65 /*Set blur radius*/ 66 static int blurRadius=10; 67 /*Enable Pixelation*/ 68 #define PIXELATION 69 /*Set pixelation radius*/ 70 static int pixelSize=10; 71 72 /* 73 * Xresources preferences to load at startup 74 */ 75 ResourcePref resources[] = { 76 { "color_background", STRING, &colorname[BACKGROUND] }, 77 { "color_init", STRING, &colorname[INIT] }, 78 { "color_input", STRING, &colorname[INPUT] }, 79 { "color_failed", STRING, &colorname[FAILED] }, 80 { "color_caps", STRING, &colorname[CAPS] }, 81 { "failonclear", INTEGER, &failonclear }, 82 { "monitortime", INTEGER, &monitortime }, 83 { "logosize", INTEGER, &logosize }, 84 { "logow", INTEGER, &logow }, 85 { "logoh", INTEGER, &logoh }, 86 { "draw_on_two", INTEGER, &draw_on_two }, 87 { "blurRadius", INTEGER, &blurRadius }, 88 { "pixelSize", INTEGER, &pixelSize }, 89 }; 90