]> git.sur5r.net Git - i3/i3status/commit
Implement battery functionality for NetBSD users
authorAlexander Vasarab <alexander@vasaconsulting.com>
Mon, 28 Apr 2014 19:16:48 +0000 (12:16 -0700)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 30 Apr 2014 07:23:17 +0000 (09:23 +0200)
commit628149b22761fd2bff7b81bda18fcc50bc11529c
tree6bf7aca6010a5fca711d14b18be3312f0de7ac92
parent93ead58bc16ba589fec58af375b0f6b0b4344290
Implement battery functionality for NetBSD users

This patch takes a similar approach as the NetBSD CPU temperature
code in that it uses proplib(3) to walk dictionaries supplied by
envsys(4).

In addition to providing the basic functionality, it:

* Provides all existing format specifiers (%emptytime %consumption
  %status %percentage %remaining)
* Respects all existing config options (hide_seconds, low_threshold,
  integer_battery_capacity, last_full_capacity)
* Projects "time until full" when battery status is CS_CHARGING
src/print_battery_info.c