From 57a57ca3a431b6dcb041e4e088c2b0477be370ad Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Wed, 12 Aug 2026 13:38:52 -0700 Subject: gnome: enable local extensions --- bin/gnome-set-config | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/gnome-set-config') 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 "['$i']" - gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-$i "['$i']" + 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 # 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" -- cgit v1.2.3