aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gnome-set-config14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/gnome-set-config b/bin/gnome-set-config
index 70b4812..1df0844 100755
--- a/bin/gnome-set-config
+++ b/bin/gnome-set-config
@@ -5,8 +5,8 @@
NUM_WORKSPACES=9
WORKSPACE_ROUTER_UUID=workspace-router@rbenencia.name
-WORKSPACE_ROUTER_CLI_UUID=workspace-router-cli@rbenencia.name
ORG_AGENDA_INDICATOR_UUID=org-agenda-indicator@rbenencia.name
+DISPLAY_PROFILE_SWITCHER_UUID=display-profile-switcher@rbenencia.name
ensure_extension_enabled() {
uuid="$1"
@@ -65,9 +65,9 @@ gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces $NUM_WORKSPACES
ensure_extension_enabled "$WORKSPACE_ROUTER_UUID"
-ensure_extension_enabled "$WORKSPACE_ROUTER_CLI_UUID"
ensure_extension_enabled "$ORG_AGENDA_INDICATOR_UUID"
-reload_extension "$WORKSPACE_ROUTER_CLI_UUID"
+ensure_extension_enabled "$DISPLAY_PROFILE_SWITCHER_UUID"
+reload_extension "$WORKSPACE_ROUTER_UUID"
ROFI_CMD="$HOME/bin/rofi"
@@ -75,15 +75,15 @@ ROFI_CMD="$HOME/bin/rofi"
gsettings set org.gnome.mutter.keybindings switch-monitor '[]'
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']"
+ 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
# This configuration is not present in gsettings; we need to fall back to dconf
bindings="emacs org-mode move-windows rofi-run"
keybindings_key="/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings"
-keybindings=$(echo $bindings | awk -v key="$keybindings_key" '{for(i=1;i<=NF;i++) printf("'\''" key "/" $i "/'\''%s", (i==NF ? "" : ","))}')
+keybindings=$(echo "$bindings" | awk -v key="$keybindings_key" '{for(i=1;i<=NF;i++) printf("'\''" key "/" $i "/'\''%s", (i==NF ? "" : ","))}')
keybindings="[$keybindings]"
dconf write "$keybindings_key" "$keybindings"
nihil fit ex nihilo