I came looking for a solution to why some software I had installed (VS Code) couldn't register the input of my desired keys (⬆ or ⬇) as an addendum to the Ctrl+Alt sequence. The essential problem is the same, but the specifics of my fresh Ubuntu install (22.04 LTS) are different from what the accepted answer identifies as the solution.
Ubuntu's built-in settings Keyboard Shortcuts didn't list the shortcuts described, and neither did gnome-tweaks
. Further searching around the topic of GNOME keyboard shortcuts led me to the question Ubuntu 17.10 and later: can't change the input switching shortcut to alt+shift, and the answers there put me on the right path:
The built-in command line interface for GNOMEs desktop key bindings is gsettings
, stored under the schema org.gnome.desktop.wm.keybindings
. You can list all of these as key-value pairs by running
gsettings list-recursively org.gnome.desktop.wm.keybindings
Scrolling through the list, I was able to find the following entries
# ...
org.gnome.desktop.wm.keybindings switch-to-workspace-down ['<Control><Alt>Down']
org.gnome.desktop.wm.keybindings switch-to-workspace-last ['<Super>End']
org.gnome.desktop.wm.keybindings switch-to-workspace-left ['<Super>Page_Up', '<Super><Alt>Left', '<Control><Alt>Left']
org.gnome.desktop.wm.keybindings switch-to-workspace-right ['<Super>Page_Down', '<Super><Alt>Right', '<Control><Alt>Right']
org.gnome.desktop.wm.keybindings switch-to-workspace-up ['<Control><Alt>Up']
# ...
To get rid of these bindings, I ran the following commands:
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down '[]'
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up '[]'
The change requires restarting the session by logging out & back in order to take effect.
If any mistake is made, the settings can be reverted with
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-down
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-up