Deleting all the keyboard shortcuts

Hi everyone. I'm new with Zorin Os Core. How can i delete the shortcuts "ctrl+alt+(any of the 4 directions)"?. Apparently it's not possible in the keyboard shortcuts settings.

Hi, welcome to Zorin OS!

Some shortcuts act on core features of the desktop environment and can't be switched through the regular menu, if at all.

In this case, you need to overwrite them by running the following command in a terminal window. You'll find the terminal in the applications menu → Utilities → Terminal. Then, run the following commands one at the time:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "[]"

Keep in mind that this disables the ability to switch back and forth between workspaces. But once you've removed this, you should be able to remap the Alt + arrow keys however you like.

In case you ever need to reset this, you can do it with:

gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-up "[]"
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-down "[]"

Or, if you want to use a different key combination you would do something like this:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Super>Page_Up', '<Super><Alt>Left'"]
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Super>Page_Down', '<Super><Alt>Right']"

Notice in this case you have to run each command separately for every direction. I'm only showing left and right here specifying the actual default keys, sans the Alt+← / → shortcut.

The Super key is the Windows key, or Command key in MacOS.

If you have any questions, feel free to ask!

Thanks, i copied and past the command in a terminal window but it didn't work.

Mmm, try running them one by one then:

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "[]"

Ok it worked. Thank you for your help.

No problem. I've edited my first reply and marked that as the solution for future reference.

2 Likes