From da9c4b0b2295358a643051c5d8d0cdaededd775b Mon Sep 17 00:00:00 2001 From: Meliq Pilosyan Date: Tue, 30 Jul 2024 03:35:04 +0400 Subject: [PATCH] Adds the apply_generic_app_hotkey_bindings migration --- migrations/1722293148.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 migrations/1722293148.sh diff --git a/migrations/1722293148.sh b/migrations/1722293148.sh new file mode 100644 index 0000000..4a4cace --- /dev/null +++ b/migrations/1722293148.sh @@ -0,0 +1,15 @@ +echo "Running upgrade migration..." + +# Reset specific key bindings for launching new Alacrity and Chrome instances. +# This functionality is now handled by the generic NUMBER combination, +# where the NUMBER is the position of the pinned application on the dock. +gsettings reset-recursively org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ +gsettings reset-recursively org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/ + +# Change dock icon click action and app-hotkey bindings behavior to launch +# or focus (if minimized) or minimize (if active) +# or show previews (if minimized and there are multiple running instances of the application). +gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'focus-minimize-or-previews' + +# Apply generic app-hotkey bindings. +source "$OMAKUB_PATH/install/desktop/set-gnome-hotkeys.sh"