Leave blank space if there's no music players
This commit is contained in:
@@ -59,7 +59,7 @@ label-mode = --%mode%--
|
||||
[module/player]
|
||||
type = custom/script
|
||||
|
||||
exec = players=`playerctl -l | wc -l` ; [[ $players != "0" ]] && playerctl metadata -f "{{status}}: {{trunc(title, 40)}} by {{artist}}" || echo "Nothing playing"
|
||||
exec = players=`playerctl -l | wc -l` ; [[ $players != "0" ]] && playerctl metadata -f "{{status}}: {{trunc(title, 40)}} by {{artist}}" || echo
|
||||
tail = true
|
||||
|
||||
format = <label>
|
||||
|
||||
Reference in New Issue
Block a user