summaryrefslogtreecommitdiff
path: root/slock/config.h
diff options
context:
space:
mode:
authorauric <auric7@protonmail.com>2025-09-08 20:51:09 -0500
committerauric <auric7@protonmail.com>2025-09-08 20:51:09 -0500
commit5f17537ca9538c8f2214be62c46823163fd8b5e5 (patch)
tree2d7a3a6029ef399191c9f8472bc4b47cfaa2c73e /slock/config.h
parentd11aec86841f77edd6eba3e07aa1e7e591e9da2a (diff)
unk
Diffstat (limited to 'slock/config.h')
-rw-r--r--slock/config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/slock/config.h b/slock/config.h
new file mode 100644
index 0000000..9855e21
--- /dev/null
+++ b/slock/config.h
@@ -0,0 +1,12 @@
+/* user and group to drop privileges to */
+static const char *user = "nobody";
+static const char *group = "nogroup";
+
+static const char *colorname[NUMCOLS] = {
+ [INIT] = "black", /* after initialization */
+ [INPUT] = "#005577", /* during input */
+ [FAILED] = "#CC3333", /* wrong password */
+};
+
+/* treat a cleared input like a wrong password (color) */
+static const int failonclear = 1;