diff --git a/src/etc/nobara/scripts/nobara-layouts/settings-scripts/audio.sh b/src/etc/nobara/scripts/nobara-layouts/settings-scripts/audio.sh new file mode 100755 index 0000000..e40041e --- /dev/null +++ b/src/etc/nobara/scripts/nobara-layouts/settings-scripts/audio.sh @@ -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 diff --git a/src/etc/nobara/scripts/nobara-layouts/settings-scripts/desktop.sh b/src/etc/nobara/scripts/nobara-layouts/settings-scripts/desktop.sh index 9d81583..25d68fd 100755 --- a/src/etc/nobara/scripts/nobara-layouts/settings-scripts/desktop.sh +++ b/src/etc/nobara/scripts/nobara-layouts/settings-scripts/desktop.sh @@ -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