4 ms·
I was nearly Mac exclusive for years before switching to Linux. Similarly to the author I mostly use a browser, VS Code and a few small utilities, although mine
by abrowne 6y ago
I was nearly Mac exclusive for years before switching to Linux. Similarly to the author I mostly use a browser, VS Code and a few small utilities, although mine are mostly simple Qt GUI apps.
My thumbs are well trained to use the keys to the sides of the space bar as the main modifier. My solution to the Command/Control issue is to swap the key positions with xkd so that it's always [Win][Alt][Ctrl][Space][Ctrl][Compose]. (Since Macs and PCs swap Alt and Win/Cmd, you need different xkb options for each type of keyboard.)
As for terminals, if you set VTE-based terminals (such as GNOME Terminal) to use Ctrl+C for copy, it will automatically set Ctrl+Shift+C to send SIGINT. Since I don't use many terminal apps that use modifiers, this works for me, and I set paste to Ctrl+V as well.
I mostly use Alacritty now, so I've set it up to do the same thing for Ctrl+Shift+C. Come to think of it, I still need to do so for VS Code's terminal, for the few times I use it.
- war1025 6y ago> if you set VTE-based terminals (such as GNOME Terminal) to use Ctrl+C for copy, it will automatically set Ctrl+Shift+C to send SIGINT. I just looked in the preferences for Gnome Terminal and didn't see this option. I think I'm used to the current setup enough that I wouldn't switch anyway, but how do you configure this?
- abrowne 6y agoI guess I installed Alacritty right away on this new computer, so I have just found and tested the GNOME Terminal option. You just open Preferences from the hamburger menu, choose Shortcuts on the left, and find "Copy Ctrl+Shift+C". Double-click the Ctrl+Shift+C part and press Ctrl+C. And I should say I'm not sure if it's sending SIGINT or actually Ctrl+C (or if that's even different). I learned just enough of this to make it work :-) But before, if I started top, I could press Ctrl+C to quit it. Now I can press Ctrl+Shift+C to quit it, and pressing Ctrl+Shift+C on a bash prompt prints "^C" and I get a new line. For Alacritty, here's what I've changed - { key: V, mods: Control, action: Paste } - { key: C, mods: Control, action: Copy } - { key: C, mods: Control|Shift, chars: "\x03" } - { key: W, mods: Control, chars: "\x04" } - { key: N, mods: Control, action: SpawnNewInstance } The xkb option for PCs is altwin:ctrl_alt_win, I think it's the "Control is mapped to Alt keys, Alt is mapped to Win keys" option if you use GNOME Tweaks, under Alt/Win key behavior. For a Mac keyboard, ctrl:swap_lwin_lctl,ctrl:swap_rwin_rctl, "Swap Left Win key with Left Ctrl key" under Ctrl key position.