commit
This commit is contained in:
parent
4856f0a9ac
commit
6c6da7507b
27
src/etc/nobara/scripts/nobara-layouts/settings-scripts/spacebar.sh
Executable file
27
src/etc/nobara/scripts/nobara-layouts/settings-scripts/spacebar.sh
Executable 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
|
27
src/etc/nobara/scripts/nobara-layouts/settings-scripts/stats.sh
Executable file
27
src/etc/nobara/scripts/nobara-layouts/settings-scripts/stats.sh
Executable 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user