22

There's a shortcut on Discord that enables you to switch between guilds easily. It's Ctrl+Alt+Up and Ctrl+Alt+Down.

The problem is that Gnome uses this shortcut for changing workspaces. I have two monitors so I don't use additional workspaces very often so I opened settings and looked for the shortcut so that I can disable it.

I found that apparently the shortcut to switch workspaces up and down is Super+Page Up and Super+Page Down and I couldn't find the Ctrl+Alt+Up or down shortcut anywhere else. It seems almost as if this shortcut isn't possible to change but I'm sure that's not the case, though I have no idea how to do that.

21

In general this can happen because the OS (window system) has priority and intercepts this shortcut and stops propagation to your desired application. Solution: Removing the shortcuts using dconf-editor:

  • sudo apt-get install dconf-tools
  • dconf-editor
  • in dconf-editor go to: /org/gnome/desktop/wm/keybindings/
  • Find switch-to-workspace-down, put ['disabled'] instead of default
  • same for ...-up
  • quit dconf-editor and you are done

I always have this problem when I want to use some Eclipse IDE shortcuts: https://bugs.eclipse.org/bugs/show_bug.cgi?id=321094

  • What is the difference between [] and ["disabled"], is it not the same ? – Christophe Roussy Feb 6 '18 at 8:26
  • 1
    This should be the preferred answer. Ctrl+Alt+Shift+Up + Ctrl+Alt+Shift+Down conflict with default common VSCode shortcuts. It took an hour to find this answer, then 2 minutes to fix it using Christophe Roussy's suggestion above. – VanAlbert Jun 12 '19 at 21:48
  • 1
    On Ubuntu 19.10, there was no package called dconf-tools. I installed the package dconf-editor and everything else in this answer worked for me. – J. B. Rainsberger Dec 25 '19 at 13:54
13

Gnome Settings shows only Super key combination for switching workspaces; even gnome-tweak-tool is not helpful.

Anyway, you can still open dconf and edit the two related keys:

from

org.gnome.desktop.wm.keybindings switch-to-workspace-up ['<Super>Page_Up', '<Control><Alt>Up']

to

org.gnome.desktop.wm.keybindings switch-to-workspace-up ['<Super>Page_Up']

The same for the other key combination.

You can run these commands on the terminal:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Super>Page_Up']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Super>Page_Down']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-up "['<Super><Shift>Page_Up']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-down "['<Super><Shift>Page_Down']"
  • unknown keyword: [<Super>Page_Up] – Johnystar Sep 24 '17 at 18:50
  • what are you saying? I don't understand – mattia.b89 Sep 25 '17 at 17:15
  • He's say that when he uses gsetting in the matter you described, it gives an error 'unknown keyword' (even though it shouldn't). I'm having the same issue and came across this thread. Got any ideas? I'm Ubuntu 17.10 Wayland. – thebunnyrules Dec 27 '17 at 23:43
  • Well, in my case, I had screwed up the double quotes: writing ['<Super><Shift>Page_Down'] instead of "['<Super><Shift>Page_Down']" – thebunnyrules Dec 28 '17 at 0:43
3

Since you have two monitors and don't need workspace, I will suggest to disable the shortcuts for "Move to workspace above/below":

  1. Setting > Devices > Keyboard
  2. search "workspace"
  3. click on "Move to workspace above", press Backspace, press Set, done.

In fact, I disabled all shortcuts related to workspace...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.