i3 / i3status

Generates status bar to use with i3bar, dzen2 or xmobar
BSD 3-Clause "New" or "Revised" License
602 stars 254 forks source link

battery: add `format_below_threshold` feature #481

Open benthor opened 2 years ago

benthor commented 2 years ago

I wanted to have a better visual signal (than just changing the font color) for when my battery was threatening to run empty on me, so I added the format_below_threshold feature from disk_info to battery as well.

This is a very minimal PR, but I also adapted the man page and included a test case.