5

Is there a way that I can stop the Ctrl+Alt+F4 key combination from switching to a virtual terminal? I still want the other key combinations to switch to terminals - I just want to change the F4 one because I often use that keyboard shortcut in a Windows VM.

Isaiah
  • 60,750
Mario
  • 161

2 Answers2

6

You can modify the keymap, with the following command:

xmodmap -pke | sed -n 's/ = .*VT_4.*/ = /p' | xmodmap -

Tested on 14.04, and 14.10, and it works. To have the command work even after restart, use upstart. For additional ways, and info see here

enzotib
  • 96,093
1

On Gnome Wayland you can unset this keybinding for virtual terminal switching by setting this dconf property:

dconf write /org/gnome/mutter/wayland/keybindings/switch-to-session-4 "['']"