Make media block hide if spotidy not open

Jonathan Hodgson 7 years ago
parent aaa2532c07
commit 63ba776588
  1. 8
      i3/blocks/mediaplayer

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

Loading…
Cancel
Save