Make media player block only append artist if it is defined

master
Jonathan Hodgson 7 years ago
parent ac43015522
commit e5b096282d
  1. 2
      i3/blocks/mediaplayer

@ -20,7 +20,9 @@ artist=$($COMMAND metadata artist | sed "s/\&/\&/g")
if [ "$title" != "(null)" ]; then
ret="<span foreground='$colour'>$title</span>"
if [ -n "$artist" ]; then
ret="$ret - $artist"
fi
echo "$ret";
fi

Loading…
Cancel
Save