So far I've got a program which gives the batterystatus in the program title bar. So you can read it on the taskbar.
The program is called 'battery' (yes!) and can be downloaded
here. Unpack the tarball, and copy battery to /bin. The rest is sourcecode, I hope someone else will make a great program of it. (Actually I borrowed almost all code from xlassie, an email notifier)
The program is split in 2 sections: battery -backend will filter the output of desktop-backend, and put the name of the current status icon in /tmp/7.txt. The other part polls this file, and reads the numerical part of the icon name, and puts it in its windowname.
To get this running edit /sbin/run-backend:
<snip>
if [ $# = 0 ] ; then
desktop-backend | battery -backend &
else
desktop-backend $* | battery -backend &
fi
<snip>
Now reboot. After you've rebooted enter
battery &in a terminal. This gives a small window which you can minimize by rightclicking on it. You can also start this by letting jwm swallow it, or any other way, as long as the X-server is started already.
The windowname will be 'Unknown' as long as desktop-backend hasn't specified an icon yet, '-' as the laptop is connected to mains, and a percentage (0,25,50,75,100) when running on battery.