about summary refs log tree commit diff
path: root/configs/shared/misc/.config/i3/config.shared
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-04-02T20·27+0100
committerWilliam Carroll <wpcarro@gmail.com>2019-04-02T20·27+0100
commitc88f3da4acc79bb4d570c0469d25263f96ed0925 (patch)
tree139135fd4853740e4af29e1bbdf61460876feb12 /configs/shared/misc/.config/i3/config.shared
parent7646143843bf2b9d957e33f992db09ac5ee436f1 (diff)
Augment clipmenu KBD to paste-in-place
Introduces the `xdotool` dependency, which is a way to simulate X window events
from the CLI.
Diffstat (limited to 'configs/shared/misc/.config/i3/config.shared')
-rw-r--r--configs/shared/misc/.config/i3/config.shared6
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/shared/misc/.config/i3/config.shared b/configs/shared/misc/.config/i3/config.shared
index 6eb7addeebc0..ddd84c0410a8 100644
--- a/configs/shared/misc/.config/i3/config.shared
+++ b/configs/shared/misc/.config/i3/config.shared
@@ -80,7 +80,11 @@ bindsym $mod+n exec st -e lf ~/Downloads
 # NOTE: Ctrl-c is already covered since `clipmenu` listens for X clipboard
 # events using `clipnotify`.
 # NOTE: `clipmenud` is started in `.xsessionrc.shared`
-bindsym Ctrl+$mod+v exec clipmenu
+# NOTE: This is a bit of a hack intended to support pasting in both the terminal
+# and in GUI applications. `st` expects `ctrl+Shift+v` while GUIs expect
+# `ctrl+v`. In the instances where GUIs don't support `ctrl+Shift+v` already, it
+# acts like `ctrl+v`, so it should "just work".
+bindsym Ctrl+$mod+v exec clipmenu && xdotool key --clearmodifiers ctrl+Shift+v
 
 # Screenshot
 # TODO: find a better KBD for this