aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorNikita Langer <nikitalanger@icloud.com>2026-04-06 22:12:19 +0200
committerNikita Langer <nikitalanger@icloud.com>2026-04-06 22:12:19 +0200
commit3e2654a33d8b1124f30b0b76bff07ad9dae81408 (patch)
tree5d75c9826a14fd8146fe5f3fc66c9d3fd53ca531 /config.def.h
downloadslock-master.tar.gz
slock-master.tar.bz2
slock-master.tar.xz
slock-master.zip
initialHEADmaster
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..5302b8c
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,52 @@
+#ifdef _laptopp
+#define laptop(...) __VA_ARGS__
+#define komputer(...)
+#endif
+
+#ifdef _komputer
+#define komputer(...) __VA_ARGS__
+#define laptop(...)
+#endif
+
+/* user and group to drop privileges to */
+static const char *user = "nobody";
+komputer(
+static const char *group = "nobody";
+)
+laptop(
+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;
+
+/* default message */
+static const char * message = "Suckless: Software that sucks less.";
+
+/* text color */
+static const char * text_color = "#ffffff";
+
+/* text size (must be a valid size) */
+// static const char * font_name = "-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1";
+// static const char * font_name = "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1";
+static const char * font_name = "6x13";
+// static const char * font_name = "cursor";
+// static const char * font_name = "fixed";
+// static const char * font_name = "-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1";
+
+/*
+ * slock -f :
+ *
+ * -misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
+ * -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
+ * 6x13
+ * cursor
+ * fixed
+ * -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
+*/