diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-12-07 21:57:27 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-12-07 21:57:27 +0200 |
| commit | 9c48487f0185bbce02567e3612c168f3bb895189 (patch) | |
| tree | d487d1ce38cc7985d1e7a6395c73400d236579a5 /.config/polybar/scripts/get_spotify_status.sh | |
| parent | 507a466269fcbdaa354b5fa6b6b6b84bd89624dd (diff) | |
| download | dotfiles-9c48487f0185bbce02567e3612c168f3bb895189.tar.gz dotfiles-9c48487f0185bbce02567e3612c168f3bb895189.zip | |
Fixed formatting
Diffstat (limited to '.config/polybar/scripts/get_spotify_status.sh')
| -rwxr-xr-x | .config/polybar/scripts/get_spotify_status.sh | 6 |
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 + |
