Closed levens closed 8 years ago
Any chance of having this PR merged?
Currently, functionality on changing fore- and background based upon the percentage of the battery is already implemented. I will close this for now, thanks for your input anyway. Maybe I'll get back to this in the future.
Hi @martinbeentjes,
It is a shame that @RyanFrantz is re-implementing what I did already ~2 years ago.
I have opened #37 to salvage the remaining features which have not been re-implemented.
Cheers,
I understand your concern, however I saw @RyanFrantz his PR other than yours. Therefore I merges his first, was not really sure what to think of your contribution (how I like it as a feature). I'll take a look at your new PR.
This is my own independent implementation similar to PR #13 & #14. It implements three level highlighting using two format strings
#{battery_prefix}
and#{battery_suffix}
which surround the highlighted part ofstatus-right
orstatus-left
. The exact strings to be substituted can be customised, for example to change the foreground/background colours (default green/yellow/red) and the threshold levels can be changed (default >=30% green, <30% yellow, <10% red).A second new feature is a spark inspired graph showing the battery level as a single character (▁▂▃▅▇).