summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-10-26 16:01:08 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-10-26 16:01:08 +0530
commit8576917fb2651003a84f842a5a1a00cd1324b855 (patch)
tree67122b22aa5e25f18074fe6e2bae1fd9f99c0e2f /patches
parentc0ba78cd05ff5567ece4dee1664ba61306886ac6 (diff)
Adding patch for Ctrl+v paste
Diffstat (limited to 'patches')
-rw-r--r--patches/6.ctrlvpaste.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/6.ctrlvpaste.diff b/patches/6.ctrlvpaste.diff
new file mode 100644
index 0000000..12acf19
--- /dev/null
+++ b/patches/6.ctrlvpaste.diff
@@ -0,0 +1,30 @@
+diff --git a/dmenu.1 b/dmenu.1
+index a54abdf..428b713 100644
+--- a/dmenu.1
++++ b/dmenu.1
+@@ -176,6 +176,8 @@ Paste from primary X selection
+ .TP
+ .B C\-Y
+ Paste from X clipboard
++.B C\-V
++Paste from X clipboard
+ .TP
+ .B M\-b
+ Move cursor to the start of the current word
+diff --git a/dmenu.c b/dmenu.c
+index 61f6af6..0167c19 100644
+--- a/dmenu.c
++++ b/dmenu.c
+@@ -554,7 +554,11 @@ keypress(XKeyEvent *ev)
+ case XK_Y:
+ XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY,
+ utf8, utf8, win, CurrentTime);
+- return;
++ case XK_v: /* paste selection */
++ case XK_V:
++ XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY,
++ utf8, utf8, win, CurrentTime);
++ return;
+ case XK_Left:
+ case XK_KP_Left:
+ movewordedge(-1);