display nothing when nothing is playing
This commit is contained in:
parent
738e351654
commit
d2480607d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user