Skip to content

Instantly share code, notes, and snippets.

@wiredmatt
wiredmatt / gnomekeyremaps.sh
Created September 9, 2025 21:58
GNOME Workspaces Key Remaps.
for i in {1..9}; do gsettings set "org.gnome.shell.keybindings" "switch-to-application-${i}" '[]'; done # disable the default Mod + Number behavior
gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false || echo "dash-to-dock extension not installed." # only needed if you're using the dash-to-dock extension
for i in {1..9}; do gsettings set "org.gnome.desktop.wm.keybindings" "switch-to-workspace-$i" "['<Super>${i}']"; done # Super + N now switches you to the Nth workspace.
for i in {1..9}; do gsettings set "org.gnome.desktop.wm.keybindings" "move-to-workspace-$i" "['<Super><Shift>${i}']"; done # Super + Shift + N now sends the focused window to the Nth workspace.