From 0bbe8e20ddf37c7a1323d4455fb8b7e86873cde9 Mon Sep 17 00:00:00 2001 From: Luca Pattocchio Date: Fri, 9 Jan 2026 17:37:37 +0100 Subject: [PATCH 1/2] Add Icon Launcher to GNOME ext --- install/desktop/set-gnome-extensions.sh | 7 +++++++ migrations/1767954695.sh | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 migrations/1767954695.sh diff --git a/install/desktop/set-gnome-extensions.sh b/install/desktop/set-gnome-extensions.sh index 82e9b2cf2..3fa99e3fb 100644 --- a/install/desktop/set-gnome-extensions.sh +++ b/install/desktop/set-gnome-extensions.sh @@ -20,6 +20,7 @@ gext install space-bar@luchrioh gext install undecorate@sun.wxg@gmail.com gext install tophat@fflewddur.github.io gext install AlphabeticalAppGrid@stuarthayhurst +gext install icon-launcher@omakasui.org # Compile gsettings schemas in order to be able to set them sudo cp ~/.local/share/gnome-shell/extensions/tactile@lundal.io/schemas/org.gnome.shell.extensions.tactile.gschema.xml /usr/share/glib-2.0/schemas/ @@ -28,6 +29,7 @@ sudo cp ~/.local/share/gnome-shell/extensions/blur-my-shell\@aunetx/schemas/org. sudo cp ~/.local/share/gnome-shell/extensions/space-bar\@luchrioh/schemas/org.gnome.shell.extensions.space-bar.gschema.xml /usr/share/glib-2.0/schemas/ sudo cp ~/.local/share/gnome-shell/extensions/tophat@fflewddur.github.io/schemas/org.gnome.shell.extensions.tophat.gschema.xml /usr/share/glib-2.0/schemas/ sudo cp ~/.local/share/gnome-shell/extensions/AlphabeticalAppGrid\@stuarthayhurst/schemas/org.gnome.shell.extensions.AlphabeticalAppGrid.gschema.xml /usr/share/glib-2.0/schemas/ +sudo cp ~/.local/share/gnome-shell/extensions/icon-launcher\@omakasui.org/schemas/org.gnome.shell.extensions.icon-launcher.gschema.xml /usr/share/glib-2.0/schemas/ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ # Configure Tactile @@ -75,3 +77,8 @@ gsettings set org.gnome.shell.extensions.tophat network-usage-unit bits # Configure AlphabeticalAppGrid gsettings set org.gnome.shell.extensions.alphabetical-app-grid folder-order-position 'end' + +# Configure Icon Launcher extension +ICON_PATH="$HOME/.local/share/omakub/applications/icons/Omakub.png" +gsettings set org.gnome.shell.extensions.icon-launcher custom-icon-path "$ICON_PATH" +gsettings set org.gnome.shell.extensions.icon-launcher custom-command "alacritty --config-file /home/$USER/.config/alacritty/pane.toml --class=Omakub --title=Omakub -e omakub" \ No newline at end of file diff --git a/migrations/1767954695.sh b/migrations/1767954695.sh new file mode 100644 index 000000000..34d1215b2 --- /dev/null +++ b/migrations/1767954695.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "Add Icon Launcher Extension" + + +# Install Icon Launcher extension +gext install icon-launcher@omakasui.org + +# Compile gsettings schemas in order to be able to set them +sudo cp ~/.local/share/gnome-shell/extensions/icon-launcher\@omakasui.org/schemas/org.gnome.shell.extensions.icon-launcher.gschema.xml /usr/share/glib-2.0/schemas/ +sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ + +# Configure Icon Launcher extension +ICON_PATH="$HOME/.local/share/omakub/applications/icons/Omakub.png" +gsettings set org.gnome.shell.extensions.icon-launcher custom-icon-path "$ICON_PATH" +gsettings set org.gnome.shell.extensions.icon-launcher custom-command "alacritty --config-file /home/$USER/.config/alacritty/pane.toml --class=Omakub --title=Omakub -e omakub" \ No newline at end of file From 5a107eaa07a4690f00b76453ebef0c043ed682c1 Mon Sep 17 00:00:00 2001 From: Luca Pattocchio Date: Fri, 9 Jan 2026 23:43:50 +0100 Subject: [PATCH 2/2] Use a toggle for omakub menu --- bin/omakub-toggle | 11 +++++++++++ install/desktop/set-gnome-extensions.sh | 2 +- migrations/1767954695.sh | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 bin/omakub-toggle diff --git a/bin/omakub-toggle b/bin/omakub-toggle new file mode 100755 index 000000000..96ccb89f3 --- /dev/null +++ b/bin/omakub-toggle @@ -0,0 +1,11 @@ +#!/bin/bash + +PID=$(pgrep -f "alacritty.*--class=Omakub") + +# If the process exists, then kill it +if [ -n "$PID" ]; then + kill "$PID" +# Otherwise, launch the application +else + gtk-launch Omakub.desktop +fi \ No newline at end of file diff --git a/install/desktop/set-gnome-extensions.sh b/install/desktop/set-gnome-extensions.sh index 3fa99e3fb..fe10aa47f 100644 --- a/install/desktop/set-gnome-extensions.sh +++ b/install/desktop/set-gnome-extensions.sh @@ -81,4 +81,4 @@ gsettings set org.gnome.shell.extensions.alphabetical-app-grid folder-order-posi # Configure Icon Launcher extension ICON_PATH="$HOME/.local/share/omakub/applications/icons/Omakub.png" gsettings set org.gnome.shell.extensions.icon-launcher custom-icon-path "$ICON_PATH" -gsettings set org.gnome.shell.extensions.icon-launcher custom-command "alacritty --config-file /home/$USER/.config/alacritty/pane.toml --class=Omakub --title=Omakub -e omakub" \ No newline at end of file +gsettings set org.gnome.shell.extensions.icon-launcher custom-command "omakub-toggle" \ No newline at end of file diff --git a/migrations/1767954695.sh b/migrations/1767954695.sh index 34d1215b2..ee2784bb8 100644 --- a/migrations/1767954695.sh +++ b/migrations/1767954695.sh @@ -13,4 +13,4 @@ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ # Configure Icon Launcher extension ICON_PATH="$HOME/.local/share/omakub/applications/icons/Omakub.png" gsettings set org.gnome.shell.extensions.icon-launcher custom-icon-path "$ICON_PATH" -gsettings set org.gnome.shell.extensions.icon-launcher custom-command "alacritty --config-file /home/$USER/.config/alacritty/pane.toml --class=Omakub --title=Omakub -e omakub" \ No newline at end of file +gsettings set org.gnome.shell.extensions.icon-launcher custom-command "omakub-toggle" \ No newline at end of file