aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Benencia <raul@thousandeyes.com>2023-11-25 07:54:19 -0800
committerRaul Benencia <raul@thousandeyes.com>2023-11-25 07:54:19 -0800
commit7ac8d682c9496bbac9350b1fca2673f15a70a279 (patch)
tree7ebfeb36a83332d9c1d0f8c4526fc743df07b2ca
parent032f792e429a5e0a2c657b71703c446eeeef59b8 (diff)
gnome-shell: wm keybindings
-rwxr-xr-xbin/gnome3-dconf-bindings13
-rwxr-xr-xbin/gnome3-keybindings7
2 files changed, 7 insertions, 13 deletions
diff --git a/bin/gnome3-dconf-bindings b/bin/gnome3-dconf-bindings
deleted file mode 100755
index 105c8f1..0000000
--- a/bin/gnome3-dconf-bindings
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-1 "['<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']"
-dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-5 "['<Super>5']"
-
-dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-1 "['<Shift><Super>1']"
-dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-2 "['<Shift><Super>2']"
-dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-3 "['<Shift><Super>3']"
-dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-4 "['<Shift><Super>4']"
-dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-5 "['<Shift><Super>5']"
diff --git a/bin/gnome3-keybindings b/bin/gnome3-keybindings
new file mode 100755
index 0000000..282fc0c
--- /dev/null
+++ b/bin/gnome3-keybindings
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in $(seq 1 9); 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