Add config.h - slock - 🔒 glitch version of slock
HTML git clone https://git.drkhsh.at/slock.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit cc21297903684262f50a5339a3d63bdd56fbe2b6
DIR parent f678e524d5688039e10fbae837e26f2dcee65bc7
HTML Author: drkhsh <me@drkhsh.at>
Date: Sat, 7 Jan 2023 02:44:43 +0100
Add config.h
Diffstat:
A config.h | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)
---
DIR diff --git a/config.h b/config.h
@@ -0,0 +1,21 @@
+/* user and group to drop privileges to */
+static const char *user = "nobody";
+static const char *group = "nobody";
+
+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;
+
+/*Enable blur*/
+//#define BLUR
+/*Set blur radius*/
+static const int blurRadius=5;
+/*Enable Pixelation*/
+#define PIXELATION
+/*Set pixelation radius*/
+static const int pixelSize=5;