display nothing when nothing is playing

This commit is contained in:
Niklas 2020-08-06 16:05:33 +02:00
parent 738e351654
commit d2480607d7

View File

@ -1,7 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
meta(){ meta(){
metadata=$(playerctl -f "{{title}} - {{artist}}" metadata) && echo $metadata metadata=$(playerctl -f "{{title}} - {{artist}}" metadata 2>/dev/null ) && echo $metadata
} }
i=0 i=0