slock

git clone git://mattcarlson.org/repos/slock.git
Log | Files | Refs

config.h (1211B)


      1 // user and group to drop privileges to
      2 static const char *user  = "mc";
      3 static const char *group = "mc";
      4 
      5 // color name
      6 static const char *colorname[NUMCOLS] = {
      7     [INIT]   = "black",
      8     [INPUT]  = "#005577",
      9 	[FAILED] = "#CC3333",
     10     [CAPS]   = "red",
     11 };
     12 
     13 // treat cleared input like wrong password (color)
     14 static int failonclear = 1;
     15 
     16 // default message
     17 static const char * message = "Suckless: Software that sucks less.";
     18 
     19 // text color
     20 static const char * text_color = "#ffffff";
     21 
     22 // text size (must be a valid size)
     23 static const char * font_name = "sans-serif:pixelsize=24:antialias=true:autohint=true";
     24 
     25 // xresources
     26 ResourcePref resources[] = {
     27        { "user",        STRING,  &user              },
     28        { "group",       STRING,  &group             },
     29        { "init",        STRING,  &colorname[INIT]   },
     30        { "input",       STRING,  &colorname[INPUT]  },
     31        { "failed",      STRING,  &colorname[FAILED] },
     32        { "caps",        STRING,  &colorname[CAPS]   },
     33        { "failonclear", INTEGER, &failonclear       },
     34        { "message",     STRING,  &message           },
     35        { "text_color",  STRING,  &text_color        },
     36        { "font_name",   STRING,  &font_name         },
     37 };