beautify tmux spotify

This commit is contained in:
Oliver Ladner 2024-02-06 08:44:48 +01:00
commit 2fa2c85b48

View file

@ -9,13 +9,13 @@ tell application "Spotify"
if artist_name > 0 if artist_name > 0
# If the track has an artist set and is therefore most likely a song rather than an advert # If the track has an artist set and is therefore most likely a song rather than an advert
"♫ " & artist_name & " - " & track_name " ♫ " & artist_name & " - " & track_name
else else
# If the track doesn't have an artist set and is therefore most likely an advert rather than a song # If the track doesn't have an artist set and is therefore most likely an advert rather than a song
"~ " & track_name " ~ " & track_name
end if end if
else else
"⏸︎ Spotify is paused" " ⏸︎ Spotify is paused"
end if end if
end if end if
end tell end tell