diff options
author | davidpkj <davidpenkow1@gmail.com> | 2022-05-28 21:52:21 +0200 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2023-08-27 20:54:02 +0200 |
commit | c81ee6f0ab8b33b4bf4a155d4b627fe2d36d87ff (patch) | |
tree | bcf4273cda22e7b8acb68f07e9c9b8b35c3eb9de /patches/1.diff | |
parent | 4f045545a25cc02c64bfc08d27ed2ccecb962292 (diff) |
slock sexy lock
Diffstat (limited to 'patches/1.diff')
-rw-r--r-- | patches/1.diff | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/1.diff b/patches/1.diff new file mode 100644 index 0000000..55af8c8 --- /dev/null +++ b/patches/1.diff @@ -0,0 +1,31 @@ +diff --git a/slock.c b/slock.c +index 5ae738c..bd54be2 100644 +--- a/slock.c ++++ b/slock.c +@@ -18,6 +18,7 @@ + #include <X11/keysym.h> + #include <X11/Xlib.h> + #include <X11/Xutil.h> ++#include <X11/XF86keysym.h> + + #include "arg.h" + #include "util.h" +@@ -157,6 +158,18 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, + IsPrivateKeypadKey(ksym)) + continue; + switch (ksym) { ++ case XF86XK_AudioPlay: ++ case XF86XK_AudioStop: ++ case XF86XK_AudioPrev: ++ case XF86XK_AudioNext: ++ case XF86XK_AudioRaiseVolume: ++ case XF86XK_AudioLowerVolume: ++ case XF86XK_AudioMute: ++ case XF86XK_AudioMicMute: ++ case XF86XK_MonBrightnessDown: ++ case XF86XK_MonBrightnessUp: ++ XSendEvent(dpy, DefaultRootWindow(dpy), True, KeyPressMask, &ev); ++ break; + case XK_Return: + passwd[len] = '\0'; + errno = 0; |