aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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