6

I would like to bind both Super+1 and Super+Home as shortcuts to the "Switch to workspace 1" action in GNOME 3. Is there a way to do this?

I think that to achieve this there would either have to be a way to assign multiple keyboard shortcuts to the same action or there would have to be a way to switch workspaces via a command-line action (which would alet me create a shortcut for it in the "custom shortcuts" section). But I'm not sure these are possible...

7

Yes, this is a dconf setting and the value is an array of strings which means it accepts multiple shortcuts. You can do that via dconf-editor if you navigate to

/org/gnome/desktop/wm/keybindings/switch-to-workspace-1

and turn Use default value OFF then insert Custom value: ['<Super>Home', '<Super>1']

enter image description here


Or if you prefer CLI you can use dconf or gsettings e.g.

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>Home', '<Super>1']"

Keep in mind the values must be quoted and separated by comma+space.

0

Adding Super+1 and friends for workspace switching with dconf:

dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-1 "['<Super>Home', '<Super>1']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-2 "['<Super>2']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-3 "['<Super>3']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-4 "['<Super>4']"

It will not create workspaces in Gnome 3 which create them dynamically when there are windows on a previous one.

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.