update spicetify theme script

This commit is contained in:
Frank Zechert
2026-08-02 22:01:13 +02:00
parent 977ac07358
commit c29abb3e6a
@@ -1,8 +1,20 @@
#!/usr/bin/bash
# Install software packages required on the system when the spotify package or theme changes
# This script is skipped if no spicetify-cli is available or no spotify is installed
if ! command -v spicetify > /dev/null; then
echo "Skipping Spotify Theming, no spicetify-cli available"
exit 0
fi
if [ ! -d "/opt/spotify" ]; then
echo "Skipping Spotify Theming, no spotify found at /opt/spotify"
exit 0
fi
# Apply theme to spotify if either the spotify binary has changed, or the theme was updated in github
# spotify hash: {{ include "/opt/spotify/spotify" | sha256sum }}
# catppuccin hash: {{ include "~/.config/spicetify-catppuccin-theme/catppuccin/app.scss" | sha256sum }}
# catppuccin hash: {{ joinPath .chezmoi.homeDir ".config/spicetify-catppuccin-theme/catppuccin/app.scss" | include | sha256sum }}
mkdir -p ~/.config/spicetify/Themes
cp -r ~/.config/spicetify-catppuccin-theme/catppuccin ~/.config/spicetify/Themes/