aboutsummaryrefslogtreecommitdiff
path: root/bin/gnome-set-config
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2023-11-25 08:04:34 -0800
committerRaúl Benencia <id@rbenencia.name>2023-11-25 08:05:27 -0800
commiteaf069f2a0ade65cdb6e3e848e4d54aa9419ff32 (patch)
tree55d1ead086cde203779c168d50d82c5f9492e2d3 /bin/gnome-set-config
parent7ac8d682c9496bbac9350b1fca2673f15a70a279 (diff)
gnome: set workspace config
Diffstat (limited to 'bin/gnome-set-config')
-rwxr-xr-xbin/gnome-set-config12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/gnome-set-config b/bin/gnome-set-config
new file mode 100755
index 0000000..5bfb476
--- /dev/null
+++ b/bin/gnome-set-config
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+NUM_WORKSPACES=9
+
+gsettings set org.gnome.mutter dynamic-workspaces false
+gsettings set org.gnome.desktop.wm.preferences num-workspaces $NUM_WORKSPACES
+
+for i in $(seq 1 $NUM_WORKSPACES); do
+ gsettings set org.gnome.shell.keybindings switch-to-application-$i '[]'
+ gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-$i "['<Super>$i']"
+ gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-$i "['<Shift><Super>$i']"
+done
nihil fit ex nihilo