13

There are a ton of questions and guides about how to make Ctrl + Alt + Arrow work to switch between workspaces -- I'm having the opposite problem.

"Switch between workspaces" works just fine -- but I want to disable it because it overrides the Ctrl + Alt + Up and Ctrl + Alt + Down of an app I need to use (plus, I usually switch between workspaces differently, by using the mouse scroll wheel on the pager in the system panel).

I'm using Ubuntu Mate 15.10 and the guides that talk about using gconf-editor seem to not apply -- it doesn't look anything like the (plain Ubuntu) screen shots in the guides.

wittich
  • 1,214
KlaymenDK
  • 519

2 Answers2

21

How to disable or change the keyboard shortcut to switch workspaces


1. On Ubuntu Mate

Although I am pretty sure the keyboard custom keybindings must be in a gsettings key somewhere in Mate as well, a quick search gave no result(s). That is a pity, since an elegant (automatic) solution would be preferable.

However

To change or disable the workspace-switch keybindings manually, choose:

System > Preferences > Hardware > Keyboard Shortcuts > Window Management (section)

Then simply click on the shortcut key (on the right) and press Backspace to disable the shortcut.

enter image description here

You could of course set another one alternatively.

If the Workspace Actions are Missing

For the workspace actions to show up in the Keyboard Shortcuts list, you may need to have at least two workspaces configured. On my machine, I had already disabled all the workspace functionality, but the keyboard shortcut was still being intercepted by Gnome. Reenabling workspaces and setting it so there were two available caused the actions to reappear in Keyboard Shortcuts so that I could remove those shortcuts.

Note

The weird thing is that after disabling the shortcut via GUI, the shortcut could be controlled, similarly to the way it is done in Gnome/Unity. Not sure what to do with it, but wanted to mention...

2. On Unity / Gnome

Using gsettings commands

The keybindings to switch to another workspace are set in:

org.gnome.desktop.wm.keybindings
  • To disable the keybindings to move up/down/left/right, run the commands:

    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up []
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down []
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left []
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right []
    
  • To reset:

    gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-up
    

    (down/left/right)

This applies to both 14.04 and 15.04+

Jacob Vlijm
  • 85,475
0

For Ubuntu 22.04, navigate to Keyboard -> under Keyboard Shortcuts section, click on View and Customize Shortcuts -> search for "workspace" and disable the shortcuts as you see fit.

Shern
  • 101