terminalkeys patch

- Apply terminalkeys patch
- Update README with link to terminalkeys patch
- Add diff to patches folder
This commit is contained in:
Sravan Balaji
2020-12-11 11:03:22 -05:00
parent f77748ad50
commit d617e8e10f
3 changed files with 57 additions and 0 deletions

16
slock.c
View File

@@ -259,6 +259,22 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
IsPFKey(ksym) ||
IsPrivateKeypadKey(ksym))
continue;
if (ev.xkey.state & ControlMask) {
switch (ksym) {
case XK_u:
ksym = XK_Escape;
break;
case XK_m:
ksym = XK_Return;
break;
case XK_j:
ksym = XK_Return;
break;
case XK_h:
ksym = XK_BackSpace;
break;
}
}
switch (ksym) {
case XF86XK_AudioPlay:
case XF86XK_AudioStop: