Leave blank space if there's no music players

This commit is contained in:
2021-10-02 23:30:14 +03:00
parent b417d75807
commit 81f46d2496

View File

@@ -59,7 +59,7 @@ label-mode = --%mode%--
[module/player] [module/player]
type = custom/script 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 tail = true
format = <label> format = <label>