How can I unbind Super+number (1,2,3, ...) from opening apps?

I would like to switch my workspaces with the keys Super+1, Super+2, etc.

But when I try them after changing the keyboard shortcuts, they open the respective app on my dock.

Any solution for this?


Solution 1:

To unbind the Super+number shortcuts from opening the dock apps you can run:

for i in {1..9}; do gsettings set org.gnome.shell.keybindings switch-to-application-$i "[]";done

Then, to make Super+number switch to the corresponding workspace, run:

for i in {1..9}; do gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-$i "['<Super>$i']";done

To revert to the previous settings run:

for i in {1..9}; do gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-$i "[]";done

and then:

for i in {1..9}; do gsettings set org.gnome.shell.keybindings switch-to-application-$i "['<Super>$i']";done