slock

My build of the suckless screen locker.
git clone git://git.alex.balgavy.eu/slock.git
Log | Files | Refs | README | LICENSE

config.def.h (1613B)


      1 /* user and group to drop privileges to */
      2 static const char *user  = "nobody";
      3 static const char *group = "nogroup";
      4 
      5 static const char *colorname[NUMCOLS] = {
      6 	[INIT] =   "black",     /* after initialization */
      7 	[INPUT] =  "#005577",   /* during input */
      8 	[INPUT_ALT] = "#227799", /* during input, second color */
      9 	[FAILED] = "#CC3333",   /* wrong password */
     10 };
     11 
     12 /* treat a cleared input like a wrong password (color) */
     13 static const int failonclear = 1;
     14 
     15 /* time in seconds before the monitor shuts down */
     16 static const int monitortime = 5;
     17 
     18 /* allow control key to trigger fail on clear */
     19 static const int controlkeyclear = 0;
     20 
     21 /* default message */
     22 static const char * message = "Suckless: Software that sucks less.";
     23 
     24 /* text color */
     25 static const char * text_color = "#ffffff";
     26 
     27 /* text size (must be a valid size) */
     28 static const char * font_name = "6x10";
     29 
     30 /* insert grid pattern with scale 1:1, the size can be changed with logosize */
     31 static const int logosize = 75;
     32 
     33 /* grid width and height for right center alignment */
     34 static const int logow = 12;
     35 static const int logoh = 6;
     36 
     37 static XRectangle rectangles[9] = {
     38 	/* x    y       w       h */
     39 	{ 0,    3,      1,      3 },
     40 	{ 1,    3,      2,      1 },
     41 	{ 0,    5,      8,      1 },
     42 	{ 3,    0,      1,      5 },
     43 	{ 5,    3,      1,      2 },
     44 	{ 7,    3,      1,      2 },
     45 	{ 8,    3,      4,      1 },
     46 	{ 9,    4,      1,      2 },
     47 	{ 11,   4,      1,      2 },
     48 };
     49 
     50 /*Enable blur*/
     51 #define BLUR
     52 /*Set blur radius*/
     53 static const int blurRadius=5;
     54 /*Enable Pixelation*/
     55 //#define PIXELATION
     56 /*Set pixelation radius*/
     57 static const int pixelSize=0;