Last active
August 31, 2023 04:30
-
-
Save srathi-monarch/107ba44d1f398a91b288ce309a5aa65d to your computer and use it in GitHub Desktop.
Set keyboard shortcuts for workspaces with n > 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable default <Super>${i} behavior | |
gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false | |
for i in $(seq 1 9); do gsettings set org.gnome.shell.extensions.dash-to-dock "app-hotkey-${i}" '[]'; done | |
for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings "switch-to-application-${i}" '[]'; done | |
for i in {1..10}; do gsettings set "org.gnome.desktop.wm.keybindings" "switch-to-workspace-${i}" "['<Super>$([ ${i} -eq 10 ] && echo -n 0 || echo -n $i)']"; done | |
for i in {1..10}; do gsettings set "org.gnome.desktop.wm.keybindings" "move-to-workspace-${i}" "['<Super><Shift>$([ ${i} -eq 10 ] && echo -n 0 || echo -n $i)']"; done |
Author
srathi-monarch
commented
Aug 31, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment