commit dd3e342afa71fcdc4e9bcd20aee99c2e9645a0da
parent 5c6f2d91661333a9341fbc85b86d4fb13cd0c994
Author: hhvn <hayden@haydenvh.com>
Date: Sun, 1 Nov 2020 16:09:24 +0000
change clipboard binding: ctrl+y -> ctrl+p
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dmenu.c b/dmenu.c
@@ -471,8 +471,6 @@ keypress(XKeyEvent *ev)
case XK_J: /* fallthrough */
case XK_m: /* fallthrough */
case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break;
- case XK_n: ksym = XK_Down; break;
- case XK_p: ksym = XK_Up; break;
case XK_k: /* delete right */
text[cursor] = '\0';
@@ -487,8 +485,8 @@ keypress(XKeyEvent *ev)
while (cursor > 0 && !strchr(worddelimiters, text[nextrune(-1)]))
insert(NULL, nextrune(-1) - cursor);
break;
- case XK_y: /* paste selection */
- case XK_Y:
+ case XK_p: /* paste selection */
+ case XK_P:
XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY,
utf8, utf8, win, CurrentTime);
return;