From 7ac8d682c9496bbac9350b1fca2673f15a70a279 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Sat, 25 Nov 2023 07:54:19 -0800 Subject: gnome-shell: wm keybindings --- bin/gnome3-dconf-bindings | 13 ------------- bin/gnome3-keybindings | 7 +++++++ 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100755 bin/gnome3-dconf-bindings create mode 100755 bin/gnome3-keybindings 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 "['1']" -dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-2 "['2']" -dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-3 "['3']" -dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-4 "['4']" -dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-5 "['5']" - -dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-1 "['1']" -dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-2 "['2']" -dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-3 "['3']" -dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-4 "['4']" -dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-5 "['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 "['$i']" + gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-$i "['$i']" +done -- cgit v1.2.3