Last active
October 24, 2023 03:16
-
-
Save hleb-albau/c70987dfc03be3887d54af12dfd40d70 to your computer and use it in GitHub Desktop.
Simple script to configure static 8 gnome workspaces with hotkey binding.
This file contains hidden or 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
#!/bin/bash | |
# This script: | |
# 1) Disable dynamic workspaces. | |
# 2) Set number of static workspaces to 8. | |
# 3) Bind hotkey 'super+{x}' to switch to {x} workspace | |
gsettings set org.gnome.shell.overrides dynamic-workspaces false | |
gsettings set org.gnome.desktop.wm.preferences num-workspaces 8 | |
for x in {1..8} | |
do | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-$x "[\"<Super>$x\"]" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment