Can I use
CMD-V to trigger the X11 clipboard functionality?
I do not want to remap
CMD to send
CTRL. This is not just about ergonomics and muscle memory. Existing answers seem to ignore the fact that
^C is a valid, useful character with its own meaning to lots of programs. I want to bind window manager commands (like copy/paste) to key combinations that don't already have decades-old conventions associated with them in popular programs, like Vim and Emacs. Something like
I want my
CTRL key to keep doing what it was designed to do.
CTRL-Cshould continue to send an
^ccharacter to my terminal to kill processes
CTRL-Vshould continue to send a
^vcharacter (the escape sequence in Vim)
CTRL-Xshould continue to send a
^xcharacter (vim's key for "subtract
countfrom number under cursor)
I want to use the
CMD key to send commands to my window manager:
CMD-Cshould set the highlighted text/object to the X11
CMD-Vshould paste from the X11
CLIPBOARDbuffer -no matter what is in there-- into the active target, like
CTL-Vor Edit->Paste does by default in almost every X application.
MacOS does system-wide shortcuts really well. It took some muscle memory adjustment, but now that I've realized that I can send actual control characters to my applications, I can't ever go back.
Can I configure my linux box to do the same thing, at least for copy & paste? The biggest sticking point is that
CTRL-V for copy/paste conflicts with vim keybindings, but generally I'd like to separate terminal control characters from window-manager command sequences.
There's a bit of useful documentation on Jamie Zawinski's site on the underlying mechanisms for how X11 handles copy/paste buffers. This is exactly the functionality I want to directly control with my keyboard. How do I configure it?