Skip to content

Commit

Permalink
feat(deck): Add ujust commands to install various themes needed by RO…
Browse files Browse the repository at this point in the history
…G Ally & Legion Go.

feat: Add auto updating for some CSS Loader themes not on the official store with topgrade
  • Loading branch information
KyleGospo committed Jan 26, 2024
1 parent cc64bed commit d7c5e52
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 17 deletions.
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions system_files/desktop/shared/usr/etc/ublue-os/topgrade.toml
@@ -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"

This file was deleted.

@@ -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
Expand Up @@ -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'
Expand Down

0 comments on commit d7c5e52

Please sign in to comment.