From 5760896e7d367cf0585490e711b8b3020945b6cd Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 3 Jul 2018 15:30:45 -0400 Subject: [PATCH] i3mpd how handles ampersands --- .scripts/i3mpd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/i3mpd b/.scripts/i3mpd index 7cf473d..8c8564e 100755 --- a/.scripts/i3mpd +++ b/.scripts/i3mpd @@ -6,7 +6,7 @@ if [[ -n $BLOCK_INSTANCE ]]; then fi filter() { - sed 2q | tac | sed -e "/volume:/d;s/\[paused\].*//g;s/\[playing\].*//g" | tr -d '\n' | sed -e "s/$/<\/span>/g" + sed 2q | tac | sed -e "s/\&/&/g;/volume:/d;s/\[paused\].*//g;s/\[playing\].*//g" | tr -d '\n' | sed -e "s/$/<\/span>/g" } case $BLOCK_BUTTON in