commit 304dcb98ac61320477db54684a9c80fba379b8b3
parent 185aca71336699e0c580458b444e4c3653ddf449
Author: Milutin Popovic <mika@popovic.xyz>
Date: Wed, 19 Nov 2025 20:58:36 +0000
clean
Diffstat:
5 files changed, 75 insertions(+), 116 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -3,39 +3,88 @@ static const char *user = "mika";
static const char *group = "mika";
static const char *colorname[NUMCOLS] = {
- [BACKGROUND] = "white",
- [INIT] = "2d2d2d", /* after initialization */
- [INPUT] = "#005577", /* during input */
- [FAILED] = "#CC3333", /* wrong password */
- [CAPS] = "red", /* CapsLock on */
+ [BACKGROUND] = "black", /* after initialization */
+ [INIT] = "#A96C8A", /* after initialization */
+ [INPUT] = "#A96C8A", /* during input */
+ [FAILED] = "#2d2d2d", /* wrong password */
+ [CAPS] = "#6CA98A", /* CapsLock on */
};
/* treat a cleared input like a wrong password (color) */
-static const int failonclear = 1;
-
-static const int monitortime = 5;
-
-static const int logosize = 75;
-static const int logow = 12; /* Grid width and height for right center alignment*/
-static const int logoh = 6;
-
-static XRectangle rectangles[9] = {
- {0, 3, 1, 3},
- {1, 3, 2, 1},
- {0, 5, 8, 1},
- {3, 0, 1, 5},
- {5, 3, 1, 2},
- {7, 3, 1, 2},
- {8, 3, 4, 1},
- {9, 4, 1, 2},
- {11,4, 1, 2},
+static int failonclear = 1;
+
+static int monitortime = 600;
+
+static int logosize = 50;
+static int logow = 9; /* Grid width and height for right center alignment*/
+static int logoh = 6;
+
+/* Setup specific draw on two monitors should be 0 false or 1 true */
+
+static int draw_on_two= 1;
+
+static XRectangle rectangles_double[18] = {
+ /* x y w h */
+ { 0, 4, 1, 2 },
+ { 1, 2, 1, 2 },
+ { 2, 0, 1, 2 },
+ { 4, 0, 1, 6 },
+ { 4, 0, 3, 1 },
+ { 4, 5, 3, 1 },
+ { 6, 0, 1, 6 },
+ //
+ { -40, 4, 1, 2 },
+ { -39, 2, 1, 2 },
+ { -38, 0, 1, 2 },
+ { -36, 0, 1, 6 },
+ { -36, 0, 3, 1 },
+ { -36, 5, 3, 1 },
+ { -34, 0, 1, 6 },
+};
+
+static XRectangle rectangles[18] = {
+ /* x y w h */
+ { 0, 4, 1, 2 },
+ { 1, 2, 1, 2 },
+ { 2, 0, 1, 2 },
+ { 4, 0, 1, 6 },
+ { 4, 0, 3, 1 },
+ { 4, 5, 3, 1 },
+ { 6, 0, 1, 6 },
+ { 0, 4, 1, 2 },
+ { 1, 2, 1, 2 },
+ { 2, 0, 1, 2 },
+ { 4, 0, 1, 6 },
+ { 4, 0, 3, 1 },
+ { 4, 5, 3, 1 },
+ { 6, 0, 1, 6 },
};
/*Enable blur*/
#define BLUR
/*Set blur radius*/
-static const int blurRadius=5;
+static int blurRadius=10;
/*Enable Pixelation*/
-//#define PIXELATION
+#define PIXELATION
/*Set pixelation radius*/
-static const int pixelSize=0;
+static int pixelSize=10;
+
+/*
+ * Xresources preferences to load at startup
+ */
+ResourcePref resources[] = {
+ { "color_background", STRING, &colorname[BACKGROUND] },
+ { "color_init", STRING, &colorname[INIT] },
+ { "color_input", STRING, &colorname[INPUT] },
+ { "color_failed", STRING, &colorname[FAILED] },
+ { "color_caps", STRING, &colorname[CAPS] },
+ { "failonclear", INTEGER, &failonclear },
+ { "monitortime", INTEGER, &monitortime },
+ { "logosize", INTEGER, &logosize },
+ { "logow", INTEGER, &logow },
+ { "logoh", INTEGER, &logoh },
+ { "draw_on_two", INTEGER, &draw_on_two },
+ { "blurRadius", INTEGER, &blurRadius },
+ { "pixelSize", INTEGER, &pixelSize },
+};
+
diff --git a/config.h b/config.h
@@ -1,90 +0,0 @@
-/* user and group to drop privileges to */
-static const char *user = "mika";
-static const char *group = "mika";
-
-static const char *colorname[NUMCOLS] = {
- [BACKGROUND] = "black", /* after initialization */
- [INIT] = "#A96C8A", /* after initialization */
- [INPUT] = "#A96C8A", /* during input */
- [FAILED] = "#2d2d2d", /* wrong password */
- [CAPS] = "#6CA98A", /* CapsLock on */
-};
-
-/* treat a cleared input like a wrong password (color) */
-static int failonclear = 1;
-
-static int monitortime = 600;
-
-static int logosize = 50;
-static int logow = 9; /* Grid width and height for right center alignment*/
-static int logoh = 6;
-
-/* Setup specific draw on two monitors should be 0 false or 1 true */
-
-static int draw_on_two= 1;
-
-static XRectangle rectangles_double[18] = {
- /* x y w h */
- { 0, 4, 1, 2 },
- { 1, 2, 1, 2 },
- { 2, 0, 1, 2 },
- { 4, 0, 1, 6 },
- { 4, 0, 3, 1 },
- { 4, 5, 3, 1 },
- { 6, 0, 1, 6 },
- //
- { -40, 4, 1, 2 },
- { -39, 2, 1, 2 },
- { -38, 0, 1, 2 },
- { -36, 0, 1, 6 },
- { -36, 0, 3, 1 },
- { -36, 5, 3, 1 },
- { -34, 0, 1, 6 },
-};
-
-static XRectangle rectangles[18] = {
- /* x y w h */
- { 0, 4, 1, 2 },
- { 1, 2, 1, 2 },
- { 2, 0, 1, 2 },
- { 4, 0, 1, 6 },
- { 4, 0, 3, 1 },
- { 4, 5, 3, 1 },
- { 6, 0, 1, 6 },
- { 0, 4, 1, 2 },
- { 1, 2, 1, 2 },
- { 2, 0, 1, 2 },
- { 4, 0, 1, 6 },
- { 4, 0, 3, 1 },
- { 4, 5, 3, 1 },
- { 6, 0, 1, 6 },
-};
-
-/*Enable blur*/
-#define BLUR
-/*Set blur radius*/
-static int blurRadius=10;
-/*Enable Pixelation*/
-#define PIXELATION
-/*Set pixelation radius*/
-static int pixelSize=10;
-
-/*
- * Xresources preferences to load at startup
- */
-ResourcePref resources[] = {
- { "color_background", STRING, &colorname[BACKGROUND] },
- { "color_init", STRING, &colorname[INIT] },
- { "color_input", STRING, &colorname[INPUT] },
- { "color_failed", STRING, &colorname[FAILED] },
- { "color_caps", STRING, &colorname[CAPS] },
- { "failonclear", INTEGER, &failonclear },
- { "monitortime", INTEGER, &monitortime },
- { "logosize", INTEGER, &logosize },
- { "logow", INTEGER, &logow },
- { "logoh", INTEGER, &logoh },
- { "draw_on_two", INTEGER, &draw_on_two },
- { "blurRadius", INTEGER, &blurRadius },
- { "pixelSize", INTEGER, &pixelSize },
-};
-
diff --git a/explicit_bzero.o b/explicit_bzero.o
Binary files differ.
diff --git a/slock b/slock
Binary files differ.
diff --git a/slock.o b/slock.o
Binary files differ.