Augment clipmenu KBD to paste-in-place
Introduces the `xdotool` dependency, which is a way to simulate X window events from the CLI.
This commit is contained in:
parent
7646143843
commit
c88f3da4ac
1 changed files with 5 additions and 1 deletions
|
@ -80,7 +80,11 @@ bindsym $mod+n exec st -e lf ~/Downloads
|
||||||
# NOTE: Ctrl-c is already covered since `clipmenu` listens for X clipboard
|
# NOTE: Ctrl-c is already covered since `clipmenu` listens for X clipboard
|
||||||
# events using `clipnotify`.
|
# events using `clipnotify`.
|
||||||
# NOTE: `clipmenud` is started in `.xsessionrc.shared`
|
# 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
|
# Screenshot
|
||||||
# TODO: find a better KBD for this
|
# TODO: find a better KBD for this
|
||||||
|
|
Loading…
Reference in a new issue