torrinfail / dwmblocks

Modular status bar for dwm written in c.
ISC License
495 stars 310 forks source link

Conditional icons #44

Closed keeganjk closed 2 years ago

keeganjk commented 3 years ago

This would probably be considered more of a feature request than an "issue": I think having some way to implement "conditional" icons would be useful—for example, a different battery icon based on levels or different volume indicated based on muted/unmuted. I tried implementing this in the scripts I used themselves and tried to opt for no icon (""), and that seems to work fine, but implementing it directly into this program could be nice.

paniash commented 3 years ago

I think keeping it within scripts is the ideal choice, otherwise it'll introduce unnecessary bloat. At this point it would be like reinventing the wheel.

torrinfail commented 2 years ago

Yeah this seems like something better kept in individual scripts. Having an empty output be ignored in terms of not making extra delimiters for them was intentional, even if kinda cryptic.