aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.config/polybar/scripts/get_spotify_status.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/polybar/scripts/get_spotify_status.sh b/.config/polybar/scripts/get_spotify_status.sh
index 0666ba7..f04400d 100755
--- a/.config/polybar/scripts/get_spotify_status.sh
+++ b/.config/polybar/scripts/get_spotify_status.sh
@@ -9,7 +9,8 @@ PARENT_BAR_PID=$(pgrep -a "polybar" | grep "$PARENT_BAR" | cut -d" " -f1)
# Examples: spotify, vlc, chrome, mpv and others.
# Use `playerctld` to always detect the latest player.
# See more here: https://github.com/altdesktop/playerctl/#selecting-players-to-control
-PLAYER="spotify"
+#PLAYER="spotify"
+PLAYER="playerctld"
# Format of the information displayed
# Eg. {{ artist }} - {{ album }} - {{ title }}
@@ -42,9 +43,10 @@ else
update_hooks "$PARENT_BAR_PID" 2
playerctl --player=$PLAYER metadata --format "$FORMAT"
elif [ "$STATUS" = "No player is running" ]; then
- echo "$STATUS"
+ echo ""
else
update_hooks "$PARENT_BAR_PID" 1
playerctl --player=$PLAYER metadata --format "$FORMAT"
fi
fi
+