[GH-ISSUE #1272] Request, opt-out from the battery icon #7409

Closed
opened 2026-05-23 02:54:18 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @gurgelgubbe on GitHub (Dec 6, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1272

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I'm checking out ironbar, cool so far. I've gotten to the battery module and noticed it adds an icon. I took a look under at the wiki for the battery module and found nothing obvious to turn the icon off. Tried icon_size: 0 which did nothing.

Describe the solution you'd like

A clear and concise description of what you want to happen.
The more info here about what you are trying to achieve, the better - there's likely more than one way to go about implementing a solution.
Boolean option to turn icons on or off. Could be a good thing for all the modules that sports some type of built in icons representing values.

Either a boolean option to either use or disregard the use of an iconized representation for the battery module.

icons: false/true

Or maybe, have the icon be a formatting token {icon}. The old waybar brain told me it was odd how I define format: "{percentage}%" and yet there's an icon. I think there's value in the format being the gatekeeper for what get's shown or not.

Either option is fine, whatever makes more sense across modules I guess?

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Some CSS magic could probably work, but I'd rather see an boolean option and have a less cluttered and hacky css.

Originally created by @gurgelgubbe on GitHub (Dec 6, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1272 **Is your feature request related to a problem? Please describe.** > A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I'm checking out ironbar, cool so far. I've gotten to the battery module and noticed it adds an icon. I took a look under at the wiki for the battery module and found nothing obvious to turn the icon off. Tried `icon_size: 0` which did nothing. **Describe the solution you'd like** > A clear and concise description of what you want to happen. > The more info here about what you are trying to achieve, the better - there's likely more than one way to go about implementing a solution. Boolean option to turn icons on or off. Could be a good thing for all the modules that sports some type of built in icons representing values. Either a boolean option to either use or disregard the use of an iconized representation for the battery module. `icons: false/true` Or maybe, have the icon be a formatting token `{icon}`. The old waybar brain told me it was odd how I define `format: "{percentage}%"` and yet there's an icon. I think there's value in the `format` being the gatekeeper for what get's shown or not. Either option is fine, whatever makes more sense across modules I guess? **Describe alternatives you've considered** > A clear and concise description of any alternative solutions or features you've considered. Some CSS magic could probably work, but I'd rather see an boolean option and have a less cluttered and hacky css.
Author
Owner

@JakeStanger commented on GitHub (Dec 6, 2025):

Agreed a show_icon and show_label should be added

<!-- gh-comment-id:3619923074 --> @JakeStanger commented on GitHub (Dec 6, 2025): Agreed a `show_icon` and `show_label` should be added
Author
Owner

@jficz commented on GitHub (Dec 9, 2025):

yes, please, I prefer just icon without label so having both toggles is preferable (for me at least :) )

<!-- gh-comment-id:3631077137 --> @jficz commented on GitHub (Dec 9, 2025): yes, please, I prefer just icon without label so having both toggles is preferable (for me at least :) )
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#7409
No description provided.