Hey,
Sorry about the delay, I've been away for a while :)

Unfortunately, I don't actually do the parsing in Awesome.
Since I use the output on other places as well, I have a simple Python
script called 'battery' in my $PATH:

#!/usr/bin/env python

from os import popen


> f = popen('ibam --percentbattery').readlines()

p = f[0][27:-1]

print p


Probably there are ways to make it more efficient, but it works.

Hope it helps.

Yo'av.

2009/7/7 Nathan Huesken <[email protected]>

> Hi,
>
> How do you use ibam?
> Do you invoke it from your rc.lua and parse the output?
> Could you send/share the code parsing the output?
>
> Thanks!
> Nathan
>
> On Tue, Jul 07, 2009 at 01:01:25AM +0300, Yo'av Moshe wrote:
> >    I'm using IBAM, 'the intelligent battery monitor'. Works great.
> >
> >    [1]http://ibam.sourceforge.net/
> >
> >    Yo'av.
> >
> >    2009/7/6 Torsten Andre <[[email protected]>
> >
> >      Tomas Kramar schrieb:
> >      >> f you want to avoid heavy gnome dependencies (but not gtk ones),
> try
> >      gbatt:
> >      >>
> >      >
> >      > Or HAL based batterymon
> >      > [3]http://code.google.com/p/batterymon/
> >      >
> >      > -Tomas
> >      >
> >      >
> >
> >      Are there any other tools? Batterymon crashes with a syntax error
> and
> >      gtk-tray-utils seems to be abandoned.
> >      Torsten
> >      --
> >      To unsubscribe, send mail to [4][email protected].
> >
> >    --
> >    Yo'av Moshe
> >
> > References
> >
> >    Visible links
> >    1. http://ibam.sourceforge.net/
> >    2. mailto:[email protected]
> >    3. http://code.google.com/p/batterymon/
> >    4. mailto:[email protected]
>
> --
>  _______________________________________
> /  "When life gives you a lemon, make   \
> | lemonade." -Susie "I say, when life   |
> | gives you a lemon, wing it right back |
> | and add some lemons of your own!"     |
> \ -Calvin                               /
>  ---------------------------------------
>       \   ,__,
>        \  (oo)____
>           (__)    )\
>              ||--|| *
>
> --
> To unsubscribe, send mail to [email protected].
>


-- 
Yo'av Moshe

Reply via email to