Hello I can't find the option to reassign shortcuts in xfce4-terminal 0.6.3. I'd like to reassign ctrl+c to copy, ctrl+v to paste and ctrl+shift+c to kill process. I know I can do that easily under gnome-terminal but since I'm using xfce I would like to avoid installing all the dependencies for gnome-terminal. Any idea on how to achieve that ?
- 3,122
- 5
- 35
- 75
- 2,193
- 10
- 28
- 59
-
You might want to consider konsole which is a lot more configurable than xfce4-terminal or gnome-terminal. – Gray Feb 15 '18 at 23:26
-
2@Gray - People use Xfce to keep a light clean system, and installing `konsole` (and other KDE specific tools) in Xfce is **really** a bad idea, it comes with about 117 dependencies, while the added value is minimal. There are other alternatives anyway. – cipricus Feb 23 '21 at 07:54
-
Minimum value? But Konsole supports output of pictures! – Bogdan Mart Jan 04 '23 at 16:09
2 Answers
The accepted answer doesn't work anymore (for example with xfce4-terminal 0.8.7.4 on Lubuntu 18.04.2) because of a GTK3 change, as described on How to change key bindings for xfce-terminal?. It seems that the only way to change the keyboard shortcuts is by modifying the configuration file, ~/.config/xfce4/terminal/accels.scm.
It may be necessary to generate this file first as it's not included at installation: Terminal preferences>Advanced, select “Disable help window shortcut key (F1 by default)”. You can reselect it once the file has been generated.
Open the file, search for “copy”, and replace ; (gtk_accel_path "<Actions>/terminal-window/copy" "<Primary><Shift>c") with (gtk_accel_path "<Actions>/terminal-window/copy" "<Primary>c").
That is: change the shortcut, but also remove the semicolon at the beginning of the beginning of the line. (It's a comment delimiter.)
The same for “paste”: replace ; (gtk_accel_path "<Actions>/terminal-window/paste" "<Primary><Shift>v") with (gtk_accel_path "<Actions>/terminal-window/paste" "<Primary>v").
Restart the terminal.
- 3
- 2
- 171
- 1
- 3
In xfce terminal go to Edit, hover your mouse over Copyand press ctrl+c.
Same goes for paste.
Kill process gets automatically reassigned to ctrl+c+shift.
- 3,122
- 5
- 35
- 75
- 2,193
- 10
- 28
- 59
-
3
-
I found that this worked for Alt-C but I couldn't get Alt-V to be assigned. Alt-T (for new tab) worked. Alt-A (for select-all) didn't work. I couldn't find the pattern. I ended up switching to konsole (++) whose shortcuts were assignable in the preferences. – Gray Feb 15 '18 at 23:26
-
1The procedure you are describing belongs to GTK2 windows. In xfce that does not work. Understand that xfce could start gnome2 windows. So, you are probably talking about gnome-terminal, not xfce-terminal. – May 15 '20 at 22:30

