If I look under Settings >> Keyboard >> Shortcuts, I don't see anything related to Control-C, -X or -V. Where are they defined? And how? Suppose I want to change their actions to some other shortcut key, how would I do it?
With help in the comments, I am able to define a hotkey to do the paste action using xdotool: xdotool key --clearmodifiers ctrl+shift+v.
In addition, I would like to add a script: xdotool key --clearmodifiers ctrl+shift+v && some_script. That fails, but with further help from the comments, I'm finding that /bin/bash -c "xdotool key --clearmodifiers ctrl+shift+v && some_script" does work!
control-yto becontrol-v? That would be fine for my purposes. How would I do that? – Diagon Sep 12 '18 at 09:59xdotoolwhich allows you to simulate keypresses, among other things. So you bind that command with required options to a shortcut, and when you press Ctrl Y, it'll say to desktop environment "Ctrl V was pressed, do your thing". – Sergiy Kolodyazhnyy Sep 12 '18 at 10:12xdotool key ctrl-lworks in a terminal window.xdotool key ctrl-shift-vsort of works, but actually pastes twice. When I try to define either to a hotkey, it fails. Thoughts? – Diagon Sep 12 '18 at 10:40xdotool sleep 0.5 key ctrl+v; some_script? Adding the script fails, though running the script along with that hotkey, works. – Diagon Sep 12 '18 at 11:13xdotool key --clearmodifiers ctrl+shft+valso seems to work, but fails when I add the script. – Diagon Sep 12 '18 at 11:27/bin/bash -c "sleep 0.5 && <xdotool command>"should work from a shortcut. – Jacob Vlijm Sep 12 '18 at 11:53xdotoolin a shortcut is now working, but that in combination with a working script, is not working. – Diagon Sep 12 '18 at 18:36