From 5e88807fea381e41fd68c0590b8537b724aaf352 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 10 Jan 2023 01:26:03 +0000 Subject: [PATCH] feat(gnome): add enable/disable static workspace scripts --- .../scripts/executable_disable-static-workspaces.sh | 10 ++++++++++ .../scripts/executable_enable-static-workspaces.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 private_dot_local/scripts/executable_disable-static-workspaces.sh create mode 100644 private_dot_local/scripts/executable_enable-static-workspaces.sh diff --git a/private_dot_local/scripts/executable_disable-static-workspaces.sh b/private_dot_local/scripts/executable_disable-static-workspaces.sh new file mode 100644 index 0000000..f5f731c --- /dev/null +++ b/private_dot_local/scripts/executable_disable-static-workspaces.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +gsettings set org.gnome.mutter dynamic-workspaces true +gsettings set org.gnome.desktop.wm.preferences num-workspaces 4 +for i in {1..12} +do + gsettings set "org.gnome.desktop.wm.keybindings" "switch-to-workspace-$i" "[]" + gsettings set "org.gnome.desktop.wm.keybindings" "move-to-workspace-$i" "[]" +done + diff --git a/private_dot_local/scripts/executable_enable-static-workspaces.sh b/private_dot_local/scripts/executable_enable-static-workspaces.sh new file mode 100644 index 0000000..289a054 --- /dev/null +++ b/private_dot_local/scripts/executable_enable-static-workspaces.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +gsettings set org.gnome.mutter dynamic-workspaces false +gsettings set org.gnome.desktop.wm.preferences num-workspaces 12 +for i in {1..12} +do + 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 +