feat(gnome): Add just command for installing Adwaita-for-Steam, update theme with ublue-update automatically when present

This commit is contained in:
Kyle Gospodnetich 2023-09-19 13:09:30 -07:00
parent 8b660728bc
commit cc662ab2c9
3 changed files with 33 additions and 0 deletions

View File

@ -274,6 +274,19 @@ enable-vgui2-theme:
echo "This is only supported under GNOME."
fi
# Install Adwaita-for-Steam theme for CSS Loader (https://github.com/tkashkin/Adwaita-for-Steam)
install-adwaita-for-steam:
#!/usr/bin/env bash
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
if [ -d "$HOME/homebrew/themes" ]; then
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, see just get-decky'
fi
else
echo "This is only supported under GNOME."
fi
# Enable legacy swapfile (Not recommended)
deckswap-on:
#!/usr/bin/env bash

View File

@ -246,6 +246,19 @@ enable-vgui2-theme:
echo "This is only supported under GNOME."
fi
# Install Adwaita-for-Steam theme for CSS Loader (https://github.com/tkashkin/Adwaita-for-Steam)
install-adwaita-for-steam:
#!/usr/bin/env bash
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
if [ -d "$HOME/homebrew/themes" ]; then
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'
fi
else
echo "This is only supported under GNOME."
fi
# Set system to boot without showing the grub screen with options
hide-grub:
#!/usr/bin/env bash

View File

@ -0,0 +1,7 @@
#!/usr/bin/bash
shopt -s nullglob
if [ -d "$HOME/homebrew/themes/Adwaita-for-Steam" ]; then
cd "$HOME/homebrew/themes/Adwaita-for-Steam"
git pull
fi