feat(deck): Add ujust commands to install various themes needed by ROG Ally & Legion Go.

feat: Add auto updating for some CSS Loader themes not on the official store with topgrade
This commit is contained in:
Kyle Gospodnetich 2024-01-26 13:29:32 -08:00
parent cc64bed48f
commit d7c5e52c9a
5 changed files with 79 additions and 17 deletions

View File

@ -44,6 +44,36 @@ get-hhd-decky:
echo 'Please install Decky Loader by running ujust get-decky first.'
fi
# Install ROG Ally Theme for CSS Loader (https://github.com/semakusut/SBP-ROG-Ally)
install-rog-ally-theme:
#!/usr/bin/bash
if [ -d "$HOME/homebrew/themes" ]; then
rm -rf "$HOME/homebrew/themes/SBP-ROG-Ally"
git clone https://github.com/semakusut/SBP-ROG-Ally.git --single-branch "$HOME/homebrew/themes/SBP-ROG-Ally"
else
echo 'Please install Decky Loader & CSS Loader first'
fi
# Install Lenovo Legion Go for CSS Loader (https://github.com/frazse/SBP-Legion-Go-Theme)
install-legion-go-theme:
#!/usr/bin/bash
if [ -d "$HOME/homebrew/themes" ]; then
rm -rf "$HOME/homebrew/themes/SBP-Legion-Go-Theme"
git clone https://github.com/frazse/SBP-Legion-Go-Theme.git --single-branch "$HOME/homebrew/themes/SBP-Legion-Go-Theme"
else
echo 'Please install Decky Loader & CSS Loader first'
fi
# Install PS5-to-Xbox glyph theme for hhd & CSS Loader (https://github.com/frazse/PS5-to-Xbox-glyphs)
install-hhd-xbox-glyph-theme:
#!/usr/bin/bash
if [ -d "$HOME/homebrew/themes" ]; then
rm -rf "$HOME/homebrew/themes/PS5-to-Xbox-glyphs"
git clone https://github.com/frazse/PS5-to-Xbox-glyphs.git --single-branch "$HOME/homebrew/themes/PS5-to-Xbox-glyphs"
else
echo 'Please install Decky Loader & CSS Loader first'
fi
# Install EmuDeck (https://www.emudeck.com/)
get-emudeck:
#!/usr/bin/bash

View File

@ -1,3 +1,3 @@
[commands]
"Firefox GNOME Theme" = "/usr/libexec/topgrade/mozilla-gnome-theme-update"
"Steam Adwaita Theme" = "/usr/libexec/topgrade/adwaita-for-steam-update"
"Mozilla GNOME Themes" = "/usr/libexec/topgrade/mozilla-gnome-theme-update"
"Third Party CSS Loader Themes" = "/usr/libexec/topgrade/third-party-css-loader-update"

View File

@ -1,15 +0,0 @@
#!/usr/bin/bash
shopt -s nullglob
echo "Looking for updates..."
if [ -d "$HOME/homebrew/themes/Adwaita-for-Steam" ]; then
cd "$HOME/homebrew/themes/Adwaita-for-Steam"
echo "Theme found, pulling latest with git."
git pull
echo "Update complete."
else
echo -e "\nNothing to do."
fi
exit 0

View File

@ -0,0 +1,46 @@
#!/usr/bin/bash
shopt -s nullglob
echo "Looking for updates..."
# Adwaita for Steam
if [ -d "$HOME/homebrew/themes/Adwaita-for-Steam/.git" ]; then
cd "$HOME/homebrew/themes/Adwaita-for-Steam"
echo "Adwaita for Steam theme found, pulling latest with git."
git pull
echo "Update complete."
else
echo -e "\nNothing to do."
fi
# ROG Ally Theme
if [ -d "$HOME/homebrew/themes/SBP-ROG-Ally/.git" ]; then
cd "$HOME/homebrew/themes/SBP-ROG-Ally"
echo "SBP-ROG-Ally theme found, pulling latest with git."
git pull
echo "Update complete."
else
echo -e "\nNothing to do."
fi
# Legion GO Theme
if [ -d "$HOME/homebrew/themes/SBP-Legion-Go-Theme/.git" ]; then
cd "$HOME/homebrew/themes/SBP-Legion-Go-Theme"
echo "SBP-Legion-Go-Theme theme found, pulling latest with git."
git pull
echo "Update complete."
else
echo -e "\nNothing to do."
fi
# HHD Theme
if [ -d "$HOME/homebrew/themes/PS5-to-Xbox-glyphs/.git" ]; then
cd "$HOME/homebrew/themes/PS5-to-Xbox-glyphs"
echo "PS5 to Xbox Glyphs theme found, pulling latest with git."
git pull
echo "Update complete."
else
echo -e "\nNothing to do."
fi
exit 0

View File

@ -146,6 +146,7 @@ patch-gmod:
install-adwaita-for-steam:
#!/usr/bin/bash
if [ -d "$HOME/homebrew/themes" ]; then
rm -rf "$HOME/homebrew/themes/Adwaita-for-Steam"
git clone https://github.com/tkashkin/Adwaita-for-Steam.git --single-branch "$HOME/homebrew/themes/Adwaita-for-Steam"
else
echo 'Please install Decky Loader & CSS Loader first'