slock
simple X display locker utility
git clone https://9o.is/git/slock.git
commit 0a3e7c20be64bec5a4b7e25f31a8384aeb3a240f parent 51ab95b3c4f57581e9d757416028cd2233668084 Author: Jul <jul@9o.is> Date: Wed, 4 Feb 2026 12:18:58 -0500 save config.h Diffstat:
| A | config.h | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/config.h b/config.h @@ -0,0 +1,12 @@ +/* user and group to drop privileges to */ +static const char *user = "nobody"; +static const char *group = "nobody"; + +static const char *colorname[NUMCOLS] = { + [INIT] = "#131314", /* after initialization */ + [INPUT] = "#131314", /* during input */ + [FAILED] = "#131314", /* wrong password */ +}; + +/* treat a cleared input like a wrong password (color) */ +static const int failonclear = 1;