slock

fork of slock
git clone git://popovic.xyz/slock.git
Log | Files | Refs | README | LICENSE

config.def.h (2203B)


      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 logosize = 50;
     17 static int logow = 9; /* Grid width and height for right center alignment*/
     18 static int logoh = 6;
     19 
     20 /* Setup specific draw on two monitors  should be 0 false or 1 true */
     21 static int draw_on_two= 1;
     22 
     23 static XRectangle rectangles_double[18] = {
     24 	/* x	y	w	h */
     25 	{ 0,	4,	1,	2 },
     26 	{ 1,	2,	1,	2 },
     27 	{ 2,	0,	1,	2 },
     28 	{ 4,	0,	1,	6 },
     29 	{ 4,	0,	3,	1 },
     30 	{ 4,	5,	3,	1 },
     31 	{ 6,	0,	1,	6 },
     32     //
     33 	{ -40,	4,	1,	2 },
     34 	{ -39,	2,	1,	2 },
     35 	{ -38,	0,	1,	2 },
     36 	{ -36,	0,	1,	6 },
     37 	{ -36,	0,	3,	1 },
     38 	{ -36,	5,	3,	1 },
     39 	{ -34,	0,	1,	6 },
     40 };
     41 
     42 static XRectangle rectangles[18] = {
     43 	/* x	y	w	h */
     44 	{ 0,	4,	1,	2 },
     45 	{ 1,	2,	1,	2 },
     46 	{ 2,	0,	1,	2 },
     47 	{ 4,	0,	1,	6 },
     48 	{ 4,	0,	3,	1 },
     49 	{ 4,	5,	3,	1 },
     50 	{ 6,	0,	1,	6 },
     51 	{ 0,	4,	1,	2 },
     52 	{ 1,	2,	1,	2 },
     53 	{ 2,	0,	1,	2 },
     54 	{ 4,	0,	1,	6 },
     55 	{ 4,	0,	3,	1 },
     56 	{ 4,	5,	3,	1 },
     57 	{ 6,	0,	1,	6 },
     58 };
     59 
     60 /*Enable blur*/
     61 #define BLUR
     62 /*Set blur radius*/
     63 static int blurRadius=10;
     64 /*Enable Pixelation*/
     65 #define PIXELATION
     66 /*Set pixelation radius*/
     67 static int pixelSize=10;
     68 
     69 /*
     70  * Xresources preferences to load at startup
     71  */
     72 ResourcePref resources[] = {
     73 		{ "color_background", STRING,   &colorname[BACKGROUND] },
     74 		{ "color_init",       STRING,   &colorname[INIT] },
     75 		{ "color_input",      STRING,   &colorname[INPUT] },
     76 		{ "color_failed",     STRING,   &colorname[FAILED] },
     77 		{ "color_caps",       STRING,   &colorname[CAPS] },
     78 		{ "failonclear",      INTEGER,  &failonclear },
     79 		{ "logosize",         INTEGER,  &logosize },
     80 		{ "logow",            INTEGER,  &logow },
     81 		{ "logoh",            INTEGER,  &logoh },
     82 		{ "draw_on_two",      INTEGER,  &draw_on_two },
     83 		{ "blurRadius",       INTEGER,  &blurRadius },
     84 		{ "pixelSize",        INTEGER,  &pixelSize },
     85 };
     86