Files
suckless/slock/patches/slock-00-all-patches.diff
T
2026-05-09 10:26:32 +02:00

37 lines
1.1 KiB
Diff

diff --git a/config.def.h b/config.def.h
index 9855e21..defbec5 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,10 +1,10 @@
/* user and group to drop privileges to */
-static const char *user = "nobody";
-static const char *group = "nogroup";
+static const char *user = "odweta";
+static const char *group = "odweta";
static const char *colorname[NUMCOLS] = {
[INIT] = "black", /* after initialization */
- [INPUT] = "#005577", /* during input */
+ [INPUT] = "#735e97", /* during input */
[FAILED] = "#CC3333", /* wrong password */
};
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..defbec5
--- /dev/null
+++ b/config.h
@@ -0,0 +1,12 @@
+/* user and group to drop privileges to */
+static const char *user = "odweta";
+static const char *group = "odweta";
+
+static const char *colorname[NUMCOLS] = {
+ [INIT] = "black", /* after initialization */
+ [INPUT] = "#735e97", /* during input */
+ [FAILED] = "#CC3333", /* wrong password */
+};
+
+/* treat a cleared input like a wrong password (color) */
+static const int failonclear = 1;