This commit is contained in:
Ward Nakchbandi 2022-09-24 12:25:37 +03:00
parent ca3814176a
commit 449b735ca5
2 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,41 @@
#! /bin/bash
# Get needed extensions into userland
# Dash to panel
if [[ $1 == enable ]]; then
if [ -d "$HOME/.local/share/gnome-shell/extensions/volume-mixer@evermiss.net" ]; then
echo "mixer already in userland no need to download anything"
echo "Enabling Now"
gnome-extensions enable volume-mixer@evermiss.net
else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$HOME/.cache/nobara-layouts/extensions/"
ls volume-mixerevermiss.net.v10.shell-extension.zip || wget https://extensions.gnome.org/extension-data/volume-mixerevermiss.net.v10.shell-extension.zip
gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/volume-mixerevermiss.net.v10.shell-extension.zip"
export RELOG_NEEDED=1
fi
if [ -d "$HOME/.local/share/gnome-shell/extensions/sound-output-device-chooser@kgshank.net" ]; then
echo "sound already in userland no need to download anything"
echo "Enabling Now"
gnome-extensions enable sound-output-device-chooser@kgshank.net
else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$HOME/.cache/nobara-layouts/extensions/"
ls sound-output-device-chooserkgshank.net.v41.shell-extension.zip || wget https://extensions.gnome.org/extension-data/sound-output-device-chooserkgshank.net.v41.shell-extension.zip
gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/sound-output-device-chooserkgshank.net.v41.shell-extension.zip"
export RELOG_NEEDED=1
fi
if [[ "$RELOG_NEEDED" == 1 ]]; then
if zenity --question --text="New extensions have been installed!, reload required!"
then
gnome-session-quit --force --no-prompt
fi
fi
else
echo "Disabling Now"
gnome-extensions disable volume-mixer@evermiss.net
gnome-extensions disable sound-output-device-chooser@kgshank.net
fi

View File

@ -5,7 +5,7 @@
# Dash to panel
if [[ $1 == enable ]]; then
if [ -d "$HOME/.local/share/gnome-shell/extensions/ding@rastersoft.com" ]; then
echo "arcmenu already in userland no need to download anything"
echo "desktop already in userland no need to download anything"
echo "Enabling Now"
gnome-extensions enable ding@rastersoft.com
else