This commit is contained in:
Ward Nakchbandi 2022-09-24 13:41:23 +03:00
parent 4856f0a9ac
commit 6c6da7507b
3 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,27 @@
#! /bin/bash
# Get needed extensions into userland
if [[ $1 == enable ]]; then
if [ -d "$HOME/.local/share/gnome-shell/extensions/space-bar@luchrioh" ]; then
echo "spacebar already in userland no need to download anything"
echo "Enabling Now"
gnome-extensions enable space-bar@luchrioh
else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$HOME/.cache/nobara-layouts/extensions/"
ls space-barluchrioh.v2.shell-extension.zip || wget https://extensions.gnome.org/extension-data/space-barluchrioh.v2.shell-extension.zip
gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/space-barluchrioh.v2.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 space-bar@luchrioh
fi

View File

@ -0,0 +1,27 @@
#! /bin/bash
# Get needed extensions into userland
if [[ $1 == enable ]]; then
if [ -d "$HOME/.local/share/gnome-shell/extensions/Vitals@CoreCoding.com" ]; then
echo "Vitals already in userland no need to download anything"
echo "Enabling Now"
gnome-extensions enable Vitals@CoreCoding.com
else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$HOME/.cache/nobara-layouts/extensions/"
ls supergfxctl-gexasus-linux.org.v15.shell-extension.zip || wget https://extensions.gnome.org/extension-data/supergfxctl-gexasus-linux.org.v15.shell-extension.zip
gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/supergfxctl-gexasus-linux.org.v15.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 Vitals@CoreCoding.com
fi

View File

@ -3,7 +3,7 @@
# Get needed extensions into userland
if [[ $1 == enable ]]; then
if [ -d "$HOME/.local/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.orgm" ]; then
if [ -d "$HOME/.local/share/gnome-shell/extensions/supergfxctl-gex@asus-linux.org" ]; then
echo "supergfxctl already in userland no need to download anything"
echo "Enabling Now"
gnome-extensions enable supergfxctl-gex@asus-linux.org