On Wed, Nov 14, 2007 at 01:38:01PM +0100, Jona Joachim wrote: >Hi! >On 16 October Dmitri Alenitchev submitted the xmobar port: >http://thread.gmane.org/gmane.os.openbsd.ports/26246 > >It has not been committed yet. >One of the major drawbacks was that the monitoring modules make >extensive use of procfs, so they obviously won't work on OpenBSD. >I rewrote the battery module so that it uses sysctl. >I also updated the example config file to show the usage of the >modified battery module. > >An updated tarball is attached. >I only tested it on a ThinkPad T60 running 4.2-amd64, so it would be >nice to see if it works right for other people.
Works fine on amd64 with recent acpi changes :] > >Please note that some batteries report their remaining charge in Ah >while others report in Wh. You will have to include this information in >your xmobar config file by specifying either "watthour" or "amphour". >You can find out what unit your system uses by running `sysctl >hw.sensors.acpibat0`. > >Oh and please keep in mind that I'm still a beginner in Haskell, so I >hope the lambda knights among you won't shoot me if I wrote some poor >style code. > >Best regards, >Jona > > >-- >"I am chaos. I am the substance from which your artists and scientists >build rhythms. I am the spirit with which your children and clowns >laugh in happy anarchy. I am chaos. I am alive, and tell you that you >are free." Eris, Goddess Of Chaos, Discord & Confusion"