summaryrefslogtreecommitdiff
path: root/slock
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-05-16 14:02:59 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-05-16 14:02:59 +0900
commite846347b5bc50a79094264f1dcfdbf197be17c0f (patch)
treee173b67621a979b1583546556c22e75f6a6aac70 /slock
parente5c22a1c059e63e65b4a8820f1751879f735a09f (diff)
Updates slock and dwm keybindings
Diffstat (limited to 'slock')
-rw-r--r--slock/config.h2
-rwxr-xr-xslock/slockbin32144 -> 32144 bytes
-rw-r--r--slock/slock.c2
3 files changed, 2 insertions, 2 deletions
diff --git a/slock/config.h b/slock/config.h
index 15e9674..b71498c 100644
--- a/slock/config.h
+++ b/slock/config.h
@@ -31,7 +31,7 @@ static const char *font_name = "monospace:size=18:bold";
static const int monitortime = 600;
/* PAM service that's used for authentication */
-static const char* pam_service = "login";
+static const char* pam_service = "system-login";
/* insert grid pattern with scale 1:1, the size can be changed with logosize */
static const int logosize = 75;
diff --git a/slock/slock b/slock/slock
index ea0d09b..5df9120 100755
--- a/slock/slock
+++ b/slock/slock
Binary files differ
diff --git a/slock/slock.c b/slock/slock.c
index 22f0a29..1fc3d9d 100644
--- a/slock/slock.c
+++ b/slock/slock.c
@@ -408,9 +408,9 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
for (screen = 0; screen < nscreens; screen++) {
time_t rawtime;
time(&rawtime);
+ refresh(dpy, locks[screen]->win,locks[screen]->screen, *localtime(&rawtime),crs[screen],surfaces[screen]);
drawlogo(dpy, locks[screen], color);
writemessage(dpy, locks[screen]->win, screen);
- refresh(dpy, locks[screen]->win,locks[screen]->screen, *localtime(&rawtime),crs[screen],surfaces[screen]);
}
pthread_mutex_unlock(&mutex);
oldc = color;