From 780ec9d1e4e450df2a24cbc517a5462257f5eefe Mon Sep 17 00:00:00 2001 From: davidpkj Date: Sat, 28 May 2022 22:10:09 +0200 Subject: slock now colored --- config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 81c909d..4e10c4d 100644 --- a/config.h +++ b/config.h @@ -8,6 +8,13 @@ static const char *colorname[NUMCOLS] = { [FAILED] = "#CC3333", /* wrong password */ }; +/* XResources preferences to load at startup */ +ResourcePref resources[] = { + { "color0", STRING, &colorname[INIT] }, + { "color1", STRING, &colorname[INPUT] }, + { "color3", STRING, &colorname[FAILED] }, +}; + /* treat a cleared input like a wrong password (color) */ static const int failonclear = 1; -- cgit v1.2.3