From d2480607d7efaa622290da7334596883cb8e64fe Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 6 Aug 2020 16:05:33 +0200 Subject: [PATCH] display nothing when nothing is playing --- .config/polybar/spotifyd-meta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/polybar/spotifyd-meta.sh b/.config/polybar/spotifyd-meta.sh index 049c81f..1ee20fe 100755 --- a/.config/polybar/spotifyd-meta.sh +++ b/.config/polybar/spotifyd-meta.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh meta(){ - metadata=$(playerctl -f "{{title}} - {{artist}}" metadata) && echo $metadata + metadata=$(playerctl -f "{{title}} - {{artist}}" metadata 2>/dev/null ) && echo $metadata } i=0