Skip to content

Commit

Permalink
Update wallbashspotify.sh (prasanthrangan#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
kRHYME7 authored Feb 18, 2024
1 parent 8739d2c commit 0e535e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Configs/.config/hypr/scripts/wallbashspotify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,4 +30,3 @@ if pkg_installed spotify && pkg_installed spicetify-cli ; then

cp "$dcol" "$scol"
fi

0 comments on commit 0e535e2

Please sign in to comment.