XFCE4 Terminal Shortcuts – How to Set Ctrl+C to Copy and Ctrl+V to Paste

keyboard shortcutsxfce4-terminal

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 ?

Best Answer

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.

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.)

enter image description here

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").

enter image description here

Restart the terminal.

Related Question