pika-gnome-layouts/src/etc/nobara/scripts/nobara-layouts/layout-scripts/macos.sh

65 lines
2.6 KiB
Bash
Raw Normal View History

2022-09-23 19:59:44 +02:00
#! /bin/bash
# Reset everything
/etc/nobara/scripts/nobara-layouts/layout-scripts/reset.sh
gnome-extensions reset dash-to-dock@micxgx.gmail.com
2022-09-24 10:36:34 +02:00
gnome-extensions reset Move_Clock@rmy.pobox.com
2022-09-24 11:00:07 +02:00
gnome-extensions reset just-perfection-desktop@just-perfection
2022-09-23 19:59:44 +02:00
dconf reset -f /org/gnome/shell/extensions/dash-to-dock/
2022-09-24 10:36:34 +02:00
dconf reset -f /org/gnome/shell/extensions/Move_Clock/
2022-09-24 11:00:07 +02:00
dconf reset -f /org/gnome/shell/extensions/just-perfection/
2022-09-23 19:59:44 +02:00
# Get needed extensions into userland
# Dash to Dock
if [ -d "$HOME/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com" ]; then
echo "dash to dock already in userland no need to download anything"
else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$HOME/.cache/nobara-layouts/extensions/"
ls ./dash-to-dockmicxgx.gmail.com.v73.shell-extension.zip || wget https://extensions.gnome.org/extension-data/dash-to-dockmicxgx.gmail.com.v73.shell-extension.zip
gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/dash-to-dockmicxgx.gmail.com.v73.shell-extension.zip"
export RELOG_NEEDED=1
fi
2022-09-24 10:36:34 +02:00
# Frippery Move Clock
if [ -d "$HOME/.local/share/gnome-shell/extensions/Move_Clock@rmy.pobox.com" ]; then
echo "Frippery Move Clock already in userland no need to download anything"
else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$HOME/.cache/nobara-layouts/extensions/"
ls ./Move_Clockrmy.pobox.com.v27.shell-extension.zip || wget https://extensions.gnome.org/extension-data/Move_Clockrmy.pobox.com.v27.shell-extension.zip
gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/Move_Clockrmy.pobox.com.v27.shell-extension.zip"
export RELOG_NEEDED=1
fi
2022-09-24 11:00:07 +02:00
# Just Perfection
if [ -d "$HOME/.local/share/gnome-shell/extensions/just-perfection-desktop@just-perfection" ]; then
echo "just perfection already in userland no need to download anything"
else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$HOME/.cache/nobara-layouts/extensions/"
ls just-perfection-desktopjust-perfection.v22.shell-extension.zip || wget https://extensions.gnome.org/extension-data/just-perfection-desktopjust-perfection.v22.shell-extension.zip
gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/just-perfection-desktopjust-perfection.v22.shell-extension.zip"
export RELOG_NEEDED=1
fi
2022-09-23 19:59:44 +02:00
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
# Enable Dash
gnome-extensions enable dash-to-dock@micxgx.gmail.com
2022-09-24 11:00:07 +02:00
# Enable just perfection
gnome-extensions enable just-perfection-desktop@just-perfection
# Enable Move Clock
2022-09-24 10:36:34 +02:00
gnome-extensions enable Move_Clock@rmy.pobox.com