Configure keybindings for more than 4 workspaces in Gnome

Revision history
Tags: gnome, linux

We can Use dconf to read and write settings for Gnome. Many things you can tune in the native settings UI is actually persisted in the dconf database.

I have 5 workspaces, instead of the 4 standard ones. In the keyboard shortcut UI, it is not possible to configure key bindings more than four. Thankfully, we can use the dconf tool directly to manipulate the settings.

I want to use the Windows Logo key on my keyboard, combined with a number, to switch the currently active workspace. I first went into the Gnome settings to configure the first four, so that I know the format to use for the fifth.

$ dconf read /org/gnome/desktop/wm/keybindings/switch-to-workspace-4
['<Super>4']

$ dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-5 "['<Super>5']"

I also want to use Shift+Windows Logo+5 to move the active window to the fifth workspace.

$ dconf read /org/gnome/desktop/wm/keybindings/move-to-workspace-5
['<Shift><Super>4']

$ dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-5 "['<Shift><Super>5']"

This was performed on a Fedora 40 workstation, using Gnome Shell v47. But this should work for all of Gnome released within the past 5 years, at least.

References

If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.