Make media player block only append artist if it is defined

Jonathan Hodgson 7 years ago
parent 90cd13dbd1
commit 939eaadf73
  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