26 lines
905 B
Cheetah
26 lines
905 B
Cheetah
#!/usr/bin/bash
|
|
|
|
# Install software packages required on the system when the spotify package or theme changes
|
|
# spotify hash: {{ include "/opt/spotify/spotify" | sha256sum }}
|
|
# catppuccin hash: {{ include "~/.config/spicetify-catppuccin-theme/catppuccin/app.scss" | sha256sum }}
|
|
|
|
mkdir -p ~/.config/spicetify/Themes
|
|
cp -r ~/.config/spicetify-catppuccin-theme/catppuccin ~/.config/spicetify/Themes/
|
|
|
|
getent group spotify > /dev/null || {
|
|
echo "System group spotify is missing"
|
|
echo "Please create it with groupadd -r spotify"
|
|
echo "Then re-login and try again"
|
|
exit 1
|
|
}
|
|
sudo chgrp spotify /opt/spotify
|
|
sudo chgrp -R spotify /opt/spotify/Apps
|
|
sudo chmod 775 /opt/spotify
|
|
sudo chmod 775 -R /opt/spotify/Apps
|
|
|
|
spicetify backup
|
|
spicetify config current_theme catppuccin
|
|
spicetify config color_scheme mocha
|
|
spicetify config inject_css 1 inject_theme_js 1 replace_colors 1 overwrite_assets 1
|
|
spicetify apply
|