Battery widget

Maybe you can use sysutils/upower to call for the battery status and display the result. I made a small script for this and call that script for the status line in sysutils/screen. It might work for a status line battery monitor in LXDE as well.

Code:
#!/bin/sh

upower -d | grep percentage | sed -n "1p" | sed -e 's/^.* //'

For other solutions try the Arch Linux forum and wiki. There is a lot of usable code there that works out of the box in FreeBSD.
 
Back
Top