diff --git a/.i3blocks/mpd b/.i3blocks/mpd index 296e71d..31ba453 100755 --- a/.i3blocks/mpd +++ b/.i3blocks/mpd @@ -77,7 +77,7 @@ do esac # Réinitialisation de l’état - unset o + unset o output declare -A o # Récupération de l’état @@ -87,7 +87,9 @@ do [[ "$output" == "OK" ]] && break o[${output%%:*}]="${output##*: }" done - + + unset output + # Récupération des informations du morceau en cours echo "currentsong" >&$IN || self-reset while read -t 1 -u $OUT output