Closed Atreyagaurav closed 1 year ago
I suppose it would be useful if icons overrides could "link" to other icons, right?
Or do you mean that we can have net_wireless
and net_wireless_bar
?
The second one. A config use_bar_on_percentage
could also work globally. But the *_bar
would allow finer control.
Not net_wireless_bar
. but rather vertical_bar
in the icon theme that can be used to provide the format string variables, like for net block format = " $icon {$signal_strength $ssid} "
could be format = " $icon {$signal_strength_bar $ssid} "
And we'll use the vertical bar uncodes to provide them Value::icon(api.get_icon_in_progression("vertical_bar", percent / 100.0)?));
like this.
This can be implemented as a formatter. We already have "bar" but it renders horizontally : https://docs.rs/i3status-rs/latest/i3status_rs/formatting/index.html#bar---display-numbers-as-progress-bars
An option can be added to render vertically.
I'll work on this after the kdeconnect network issue is closed. I haven't used any bar options based on the value, but that definitely seems like a better option if we can use values from the variables, than more variables for each value.
How about we have this sequence:
It doesn't need to have multiple character, just a progression sequence that'll emulate the vertical bar like thing and it's unicode and we can have this added near the symbols that give percentage. We can add
*_bar
variety for them and use these that people can use instead of percentages.I can make the pull request if you guys think it's a good idea. I think it is, as it allows us to have sort of progression symbol for icon themes that don't have progressions.
For example here it has
net_wireless
with bar on the side.Here is the horizontal one, but I think vertical looks better.
Here are the descriptions of the characters: https://en.wikipedia.org/wiki/Block_Elements