Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions bin/omakub-toggle
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions install/desktop/set-gnome-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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
Expand Down Expand Up @@ -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 "omakub-toggle"
16 changes: 16 additions & 0 deletions migrations/1767954695.sh
Original file line number Diff line number Diff line change
@@ -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 "omakub-toggle"