Make media block hide if spotidy not open

master
Jonathan Hodgson 7 years ago
parent 8847576116
commit bb1c4a14a6
  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