3 ms·
> 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 p
by 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.