diff --git a/Configs/.config/hypr/scripts/wallbashspotify.sh b/Configs/.config/hypr/scripts/wallbashspotify.sh index b5ffeb8016..3e807abd7e 100755 --- a/Configs/.config/hypr/scripts/wallbashspotify.sh +++ b/Configs/.config/hypr/scripts/wallbashspotify.sh @@ -11,6 +11,12 @@ dcol="${XDG_CONFIG_HOME:-$HOME/.config}/spicetify/Themes/Sleek/Wall-Dcol.ini" if pkg_installed spotify && pkg_installed spicetify-cli ; then + if [ ! -w /opt/spotify ] || [ ! -w /opt/spotify/Apps ]; then + notify-send -a "Hyprdots" "Permission needed for Wallbash Spotify theme" + pkexec chmod a+wr /opt/spotify + pkexec chmod a+wr /opt/spotify/Apps -R + fi + if [ "$(spicetify config | awk '{if ($1=="color_scheme") print $2}')" != "Wallbash" ] ; then tar -xzf ${CloneDir}/Source/arcs/Spotify_Sleek.tar.gz -C ~/.config/spicetify/Themes/ spicetify config current_theme Sleek @@ -24,4 +30,3 @@ if pkg_installed spotify && pkg_installed spicetify-cli ; then cp "$dcol" "$scol" fi -