34

I like to switch workspaces via Super+Number. But unfortunately the default behavior in Ubuntu for Super+Number is to select applications from the dock.

Is it possible to disable that functionality? I've tried overriding the keyboard shortcuts but it doesn't appear to be working.

1

6 Answers 6

33

For Ubuntu 17.10 - 18.10

Run the following command in Terminal:

gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false

This should disable the default behaviour of Super+0...9.

3
  • 2
    This has frustrated me to no end, thank you very much! Commented Jan 10, 2018 at 18:36
  • 2
    In 19.04 this no longer seems to work. I've even uninstalled the default dock and it still switches, so it seems to be handled somewhere else. Commented Apr 23, 2019 at 6:46
  • 3
    @per See this answer: askubuntu.com/a/1137705/480481 Commented Apr 25, 2019 at 2:47
29

For Ubuntu 19.04

In addition to Nolf's answer, you can also set these settings on the command line with these commands:

gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false
gsettings set org.gnome.shell.keybindings switch-to-application-1 []
gsettings set org.gnome.shell.keybindings switch-to-application-2 []
gsettings set org.gnome.shell.keybindings switch-to-application-3 []
gsettings set org.gnome.shell.keybindings switch-to-application-4 []
gsettings set org.gnome.shell.keybindings switch-to-application-5 []
gsettings set org.gnome.shell.keybindings switch-to-application-6 []
gsettings set org.gnome.shell.keybindings switch-to-application-7 []
gsettings set org.gnome.shell.keybindings switch-to-application-8 []
gsettings set org.gnome.shell.keybindings switch-to-application-9 []

Update:

I'm using Dash to Panel now (instead of Dash to Dock) and got the same problem back again. Now we need these commands:

dconf write /org/gnome/shell/extensions/dash-to-panel/hot-keys false
dconf write /org/gnome/shell/extensions/dash-to-panel/hotkey-prefix-text "''"

dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-1 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-2 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-3 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-4 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-5 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-6 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-7 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-8 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-9 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-10 "['']"

dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-1 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-2 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-3 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-4 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-5 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-6 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-7 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-8 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-9 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-hotkey-kp-10 "['']"

dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-1 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-2 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-3 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-4 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-5 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-6 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-7 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-8 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-9 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-10 "['']"

dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-1 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-2 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-3 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-4 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-5 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-6 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-7 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-8 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-9 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-ctrl-hotkey-kp-10 "['']"

dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-1 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-2 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-3 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-4 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-5 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-6 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-7 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-8 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-9 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-10 "['']"

dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-1 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-2 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-3 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-4 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-5 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-6 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-7 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-8 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-9 "['']"
dconf write /org/gnome/shell/extensions/dash-to-panel/app-shift-hotkey-kp-10 "['']"

And then turn off and on the extension should make it work.

4
  • 2
    for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings switch-to-application-${i} []; done Commented Oct 4, 2020 at 9:06
  • 1
    for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings switch-to-application-${i} '[]'; done (missing quotes around []) Commented Apr 18, 2022 at 3:29
  • works for 20.04 Commented Sep 18, 2023 at 16:32
  • works on 24.04 - nice. Commented Apr 11, 2025 at 6:36
15

For Ubuntu 19.04

Install dconf-editor (sudo apt install dconf-editor) and open dconf-editor. Replace the keyboard shortcuts with empty brackets '[]' as shown in the screenshot.

Screenshot of how this is done for supr+5 keyboard shortcut

2
  • 9
    This works, but the path on 19.04 is /org/gnome/shell/keybindings/, at least for me. Commented Apr 25, 2019 at 5:54
  • 5
    @PerJohansson, you saved my time, thank you. I found out that /org/gnome/shell/keybindings/ has priority over /org/gnome/shell/extensions/dash-to-dock/ Commented May 27, 2019 at 10:09
9

For Ubuntu 20.04.4 This was enough:

gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false
for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings switch-to-application-${i} '[]'; done

credits to: @gitaarik and @Bibek Shrestha in: https://askubuntu.com/a/1138322/389523

1
  • This works on Ubuntu 22.04 as of March 2023. Commented Mar 25, 2023 at 19:47
4

In my experience on Ubuntu 19.04 I have to set both

org.gnome.shell.extensions.dash-to-dock app-hotkey-1 '[]'
org.gnome.shell.keybindings switch-to-application-1 '[]'

in order to deactivate the app launcher shortcut 1. If I change only one of the two settings it does not work.

1
  • Yup. Looks like Ubuntu 20.04 works the same way. You've got to change both of them to change the behavior. Thanks! This was driving me crazy. Commented Nov 25, 2020 at 20:26
4

For Ubuntu 24.04

Open the "Extension Manager" for Gnome Extensions, click on the cog wheel for "Ubuntu Dock".

Then disable the "Use keyboard shortcuts to activate apps" setting:

enter image description here

1
  • 2
    Might need to install it with sudo apt install gnome-shell-extension-manager. Commented Oct 1, 2025 at 15:57

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.