diff --git a/i3/blocks/mediaplayer b/i3/blocks/mediaplayer index f8136ad5..2dfc80ba 100755 --- a/i3/blocks/mediaplayer +++ b/i3/blocks/mediaplayer @@ -20,7 +20,9 @@ artist=$($COMMAND metadata artist | sed "s/\&/\&/g") if [ "$title" != "(null)" ]; then ret="$title" - ret="$ret - $artist" + if [ -n "$artist" ]; then + ret="$ret - $artist" + fi echo "$ret"; fi