summaryrefslogtreecommitdiff
path: root/slock
diff options
context:
space:
mode:
authorauric <auric7@protonmail.com>2025-09-08 21:07:26 -0500
committerauric <auric7@protonmail.com>2025-09-08 21:07:26 -0500
commit3c8ea5c51cedd14964cc7b9b82ee24c523ac2e4b (patch)
treeb9053d85ac74626166c1ee8f60550102eef8e74a /slock
parent9e10c2714cd159ce953155225cbe2ecc6810bd7f (diff)
parente2ec2e4acbf07da282c7ce4d4370ed1a83e11e70 (diff)
Approve PR
Diffstat (limited to 'slock')
-rw-r--r--slock/config.h12
-rw-r--r--slock/explicit_bzero.obin0 -> 1464 bytes
-rwxr-xr-xslock/slockbin0 -> 34944 bytes
-rw-r--r--slock/slock.c2
-rw-r--r--slock/slock.obin0 -> 28296 bytes
5 files changed, 13 insertions, 1 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;
diff --git a/slock/explicit_bzero.o b/slock/explicit_bzero.o
new file mode 100644
index 0000000..192474c
--- /dev/null
+++ b/slock/explicit_bzero.o
Binary files differ
diff --git a/slock/slock b/slock/slock
new file mode 100755
index 0000000..0d85d2f
--- /dev/null
+++ b/slock/slock
Binary files differ
diff --git a/slock/slock.c b/slock/slock.c
index 962cc1d..297e076 100644
--- a/slock/slock.c
+++ b/slock/slock.c
@@ -180,7 +180,7 @@ blurbackground(Display *dpy, struct lock *lock)
if (!img)
return;
imlib_context_set_image(img);
- imlib_image_blur(20);
+ imlib_image_blur(75);
lock->bgmap = XCreatePixmap(dpy, lock->root, w, h,
DefaultDepth(dpy, lock->screen));
diff --git a/slock/slock.o b/slock/slock.o
new file mode 100644
index 0000000..f28cbdd
--- /dev/null
+++ b/slock/slock.o
Binary files differ