Aral Balkan

Mastodon icon RSS feed icon P2P network icon

Setting multiple key bindings for the same action in GNOME

Screenshot of dconf-editor showing the keybindings for switching the windows of an applicaiton.

Editing keybindings in dconf Editor.

In GNOME, you can only set one key binding for a given action using the Settings app (under Devices → Keyboard) even though the settings data structure itself accepts an array.

You can, however, set multiple key bindings per action by installing the dconf Editor app or through the command-line using the gsettings command.

To install dconf Editor:

sudo apt install dconf-editor

To change key bindings via the command-line (e.g. for switching the windows of an application):

gsettings set org.gnome.desktop.wm.keybindings switch-group "['<Alt>section', '<Super>section']"
gsettings set org.gnome.desktop.wm.keybindings switch-group-backward "['<Shift><Alt>section', '<Shift><Super>section']"