From 9c48487f0185bbce02567e3612c168f3bb895189 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 7 Dec 2022 21:57:27 +0200 Subject: Fixed formatting --- .config/polybar/scripts/get_spotify_status.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.config/polybar/scripts/get_spotify_status.sh') 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 + -- cgit v1.2.3