Make mediaplater block escape ampersand

Jonathan Hodgson 7 years ago
parent 88b83474b0
commit aa9a1e4235
  1. 10
      i3/blocks/mediaplayer

@ -15,7 +15,13 @@ else
colour="#FF8000" colour="#FF8000"
fi fi
ret="<span foreground='$colour'>$($COMMAND metadata title)</span>" title=$($COMMAND metadata title | sed "s/\&/\&amp;/g")
ret="$ret - $($COMMAND metadata artist)" artist=$($COMMAND metadata artist | sed "s/\&/\&amp;/g")
ret="<span foreground='$colour'>$title</span>"
ret="$ret - $artist"
echo "$ret"; echo "$ret";

Loading…
Cancel
Save