diff --git a/.i3blocks/mpd b/.i3blocks/mpd index 00a796e..0864447 100755 --- a/.i3blocks/mpd +++ b/.i3blocks/mpd @@ -167,6 +167,7 @@ do declare -i time_elapsed time_total time_left time_total="${o["Time"]:--1}" + [[ "$time_total" -eq 0 ]] && time_total=-1 if [[ "${o["state"]}" == "stop" ]] then time_elapsed=-1