If you use gnome/xfce:
gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"
xfconf-query -c xsettings -p /Gtk/KeyThemeName -s Emacs
Try both commands.
Re:Modeless Vim
by bloopernova on Tuesday January 16, 2024 @11:03AM
(#39014864)
Very cool!
I also want to use Command (Super or Hyper?), which really improves keyboard shortcuts. Command + left/right = jump to beginning or end of line, Option + left/right = jump to beginning/end of word. I know you can do the same with Control + Shift, but some apps don't support it. Plus Cmd+c/x/v for copy/cut/paste works fine in terminals, I don't have to remember to "code switch" my shortcut "language". Cmd+Backspace deletes the whole line, etc etc.
I just swap Ctrl and Caps Lock, much better.
setkbmap us -option ctrlL:swapcaps -option compose:rwin
You can place that command at XFCE's startup settings for applications.
You missed the point; Ctrl-C is never going to be "copy" in a terminal, since that shortcut is already in use. Cmd-C can work everywhere, but GUI applications on linux do not default to that.
> You missed the point; Ctrl-C is never going to be "copy" in a terminal, since that shortcut is already in use
My `stty intr ^X` disagrees
I've made Ctrl-C do copy paste in the terminal, even in vim, with a special function for wayland:
vnoremap <C-C> <CMD>call WLCopy()<CR>
I bound WindowsKey-C to run the command "xsel|xsel -b" which copies the active selection to the clipboard. It's a small step in the right direction; it's possible to get paste working as well, but that takes awareness of apps (or reconfiguring all GUI applications to use the same shortcut as the terminal).
I use emacs and I respect emacs developers, but it is not originally emacs bindings:
http://unix-kb.cat-v.org/
And, agreed, macOS' use of shortcuts is fantastic and I wish I could replicate it on Linux.