X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=91975e9ef7128f8696fecb227ccc2da691a225d6;hb=d8185d94e32f770bcf6d96a56f07fde81f1761e0;hp=fca0ae0aaf96d50a157d98743abf3ac44cf91e38;hpb=b1289f30b79c9c5ea43a9e9c624406d7d0661692;p=slock.git diff --git a/config.def.h b/config.def.h index fca0ae0..91975e9 100644 --- a/config.def.h +++ b/config.def.h @@ -1,6 +1,23 @@ +/* user and group to drop privileges to */ +static const char *user = "pinosaur"; +static const char *group = "pinosaur"; + static const char *colorname[NUMCOLS] = { - "black", /* after initialization */ - "#005577", /* during input */ - "#CC3333", /* failed/cleared the input */ + [INIT] = "black", /* after initialization */ + [INPUT] = "#005577", /* during input */ + [FAILED] = "#CC3333", /* wrong password */ }; -static const Bool failonclear = True; + + +/* + * Xresources preferences to load at startup + */ +ResourcePref resources[] = { + { "color0", STRING, &colorname[INIT] }, + { "color4", STRING, &colorname[INPUT] }, + { "color1", STRING, &colorname[FAILED] }, + { "color3", STRING, &colorname[CAPS] }, +}; + +/* treat a cleared input like a wrong password (color) */ +static const int failonclear = 1;