How do I fix the keyboard shortcuts for switching workspaces in 20.04?

You can find built in keyboard shortcuts and add your own custom shortcuts in Settings > Keyboard Shortcuts.

The default keyboard shortcuts for moving between workspaces in 20.04 are Super + PgUp for Workspace Up and Super + PgDn for Workspace Down. For many keyboard shortcuts the combination of Ctrl + Alt is a substitute for the Super key.

Install gnome-tweaks

sudo apt install gnome-tweaks

and toggle from Dynamic Workspaces to Static

Retry adding a custom keyboard shortcut.


I've been bitten by this a few times now when GNOME decide to "improve" things. The latest case was with the release of v40 where workspaces are now horizontal rather than vertical and the keybindings have been adjusted accordingly. After the change my shortcuts broke again, and no amount of fiddling would get them to "take" again. The accepted answer here doesn't get to the bottom of what's going on, and after a lot of frustration I think I know what causes this and how to fix it reliably.

When new settings are introduced, it appears that the GNOME devs aren't especially careful to cover all the upgrade cases for existing users. As a result, you can end up with shortcuts bound to window manager actions that no longer exist; they don't show up in the Keyboard Shortcuts UI and rebinding that shortcut through the UI doesn't delete the old binding. As a result, you end up with two actions bound to the same shortcut, and whether your new binding works depends on luck - which order the two appear in a non-deterministically ordered list of keybindings.

To fix this, go to the command line are run:

gsettings list-recursively org.gnome.desktop.wm.keybindings

This will produce you a list of all of the current keybindings, including those hidden in the UI. Find all of the settings that are bound to the shortcut that's causing the problem (there will be more than one, almost certainly) Clear them by running commands like:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "[]"

Once you've cleared all of the pre-existing bindings for your shortcut, you should be able to go back to the settings UI and set up your shortcuts as you want them.