X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=config.def.h;h=233a1b33dff633ef1cfa6fbe0f3e2505f81e0bda;hb=ff479c17a10cceb09821ab908f361ed3b99758d4;hp=9855e2117e719998b65367c66fd30f625b3fa7d2;hpb=35633d45672d14bd798c478c45d1a17064701aa9;p=slock.git diff --git a/config.def.h b/config.def.h index 9855e21..233a1b3 100644 --- a/config.def.h +++ b/config.def.h @@ -8,5 +8,16 @@ static const char *colorname[NUMCOLS] = { [FAILED] = "#CC3333", /* wrong password */ }; + +/* + * 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;