update dwmblocks and slock
This commit is contained in:
@@ -34,3 +34,31 @@ index 0000000..defbec5
|
||||
+
|
||||
+/* treat a cleared input like a wrong password (color) */
|
||||
+static const int failonclear = 1;
|
||||
|
||||
diff --git a/slock/slock.c b/slock/slock.c
|
||||
index f16781f..f556d34 100644
|
||||
--- a/slock/slock.c
|
||||
+++ b/slock/slock.c
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
+#include <X11/XF86keysym.h>
|
||||
|
||||
#include "arg.h"
|
||||
#include "util.h"
|
||||
@@ -158,6 +159,14 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
|
||||
IsPrivateKeypadKey(ksym))
|
||||
continue;
|
||||
switch (ksym) {
|
||||
+ case XF86XK_AudioMute:
|
||||
+ case XF86XK_AudioRaiseVolume:
|
||||
+ case XF86XK_AudioLowerVolume:
|
||||
+ case XF86XK_AudioMicMute:
|
||||
+ case XF86XK_MonBrightnessUp:
|
||||
+ case XF86XK_MonBrightnessDown:
|
||||
+ XSendEvent(dpy, DefaultRootWindow(dpy), True, KeyPressMask, &ev);
|
||||
+ break;
|
||||
case XK_Return:
|
||||
passwd[len] = '\0';
|
||||
errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user