joey/ code/ wmbattery

wmbattery.gif Wmbattery displays the status of your laptop's battery in a small icon. This includes if it is plugged in, if the battery is charging, how many minutes of battery life remain, battery life remaining (with both a percentage and a graph), and battery status (high - green, low - yellow, or critical - red).

There's nothing in the program that makes it require WindowMaker, except maybe the look. It can be docked in WindowMaker or Afterstep's dock.

Wmbattery is based heavily on wmapm by Chris D. Faulhaber.

Wmapm is a nice program - why have I modified it into wmbattery? Here are some improvements in wmbattery:

wmbattery is available as a Debian package or in git (git://git.kitenet.net/wmbattery).

I posted some thoughts and history about wmbattery to my blog a while ago.

News

version 2.38

wmbattery 2.38 released with these changes

  • Magic header file reordering to work around the disgusting linux-libc-dev/libc headers conflicts (#435700). Closes: #463811
Posted Wednesday afternoon, February 27th, 2008
version 2.37

wmbattery 2.37 released with these changes

  • Support reconnecting to dbus if it's restarted. (AKA giant dbus-PITA)
Posted late Wednesday night, February 21st, 2008
version 2.36

wmbattery 2.36 released with these changes

  • Support reconnecting to hal if the connection is closed, as happens if the hal is restarted.
Posted Wednesday night, February 20th, 2008