[GH-ISSUE #364] Allow customizing the format of numbers in certain modules #8564

Closed
opened 2026-05-23 03:52:48 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @pluiedev on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/364

Is your feature request related to a problem? Please describe.
Currently some modules, like sys_info, formats numbers like percentages and memory usage in GB in a fixed way, and that is sometimes not ideal. Often times I'd like these numbers to have one decimal point, and it kinda frustrates me that there's currently no way to do that.

Describe the solution you'd like
Perhaps we could do it like Waybar and use a format specifier? Using a Rust style syntax, we can have something like {memory_used:.2}. That might conflict with the syntax currently reserved for specifying sensors and such for temperature readouts, but we might be able to find a compromise.

Describe alternatives you've considered
Aside from different format string syntaxes, I'm not sure if there's any more alternatives other than keeping the status quo.

Originally created by @pluiedev on GitHub (Nov 27, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/364 **Is your feature request related to a problem? Please describe.** Currently some modules, like sys_info, formats numbers like percentages and memory usage in GB in a fixed way, and that is sometimes not ideal. Often times I'd like these numbers to have one decimal point, and it kinda frustrates me that there's currently no way to do that. **Describe the solution you'd like** Perhaps we could do it like Waybar and use a format specifier? Using a Rust style syntax, we can have something like `{memory_used:.2}`. That might conflict with the syntax currently reserved for specifying sensors and such for temperature readouts, but we might be able to find a compromise. **Describe alternatives you've considered** Aside from different format string syntaxes, I'm not sure if there's any more alternatives other than keeping the status quo.
Author
Owner

@JakeStanger commented on GitHub (Nov 27, 2023):

Hey, totally on board with this & I think rust-style formatting strings are the way to go. This is similar to #149 so I'll probably look to tackle both in one go.

<!-- gh-comment-id:1827837221 --> @JakeStanger commented on GitHub (Nov 27, 2023): Hey, totally on board with this & I think rust-style formatting strings are the way to go. This is similar to #149 so I'll probably look to tackle both in one go.
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#8564
No description provided.