Closed beucismis closed 2 weeks ago
maybe you want just --no-zero-output option and set no icon when no updates?
Yep. My config:
"custom/updates": {
"format": "UP: {}",
"return-type": "json",
"exec": "waybar-module-pacman-updates",
"exec-if": "waybar-module-pacman-updates --no-zero-output | jq .text",
}
try this:
"custom/updates": {
"format": "{} {icon}",
"return-type": "json",
"format-icons": {
"has-updates": "",
"updated": ""
},
"exec-if": "which waybar-module-pacman-updates",
"exec": "waybar-module-pacman-updates --no-zero-output"
}
Not exactly what I wanted... Thanks.
I'm sorry for necrobumping, but would you consider adding this tip to the readme? I think this is an issue several people might have (I'm eveidently at least the second) and not everyone will figure out to look in closed issues for this.
done
Hi, I'm try...
If outpus is "0", hide. With waybar
exec-if
state. But not working.