From 1592e3b1e9c5c1de8f89178cadb305d7a0113e53 Mon Sep 17 00:00:00 2001 From: Breizh Date: Sat, 20 Aug 2022 20:35:13 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20de=20la=20gestion=20des=20valeurs?= =?UTF-8?q?=20contenant=20=C2=AB=C2=A0:=C2=A0=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .i3blocks/mpd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.i3blocks/mpd b/.i3blocks/mpd index f5eff3a..ea3071c 100755 --- a/.i3blocks/mpd +++ b/.i3blocks/mpd @@ -44,7 +44,7 @@ human_time() { echo "status" >&"$IN" while read -t 0.1 -u "$OUT" output do - [[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }" + [[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }" done # Boucle principale @@ -85,7 +85,7 @@ do echo "currentsong" >&"$IN" || self-reset while read -t 0.1 -u "$OUT" output do - [[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }" + [[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }" done # Choix des couleurs selon l’état