Re: FVWM: Battery state program

From: Chris Debenham <chris_at_adebenham.com>
Date: Fri, 25 Feb 2005 15:51:20 +1100

On Thu, Feb 24, 2005 at 08:45:22AM -0500, Rouben Rostamian wrote in a legally binding way:
> Date: Thu, 24 Feb 2005 08:45:22 -0500
> From: Rouben Rostamian <rouben_at_math.umbc.edu>
> To: fvwm_at_fvwm.org
> Cc: Tim Hanson <tjhanson_at_comcast.net>
> Subject: Re: FVWM: Battery state program
>
> On Thu, Feb 24, 2005 at 04:06:33AM -0800, Tim Hanson wrote:
> >
> > Does anyone know of a little graphic (Swallowable into FvwmButtons) that
> > keeps track of battery life on a laptop?
>
> That depends whether APM or ACPI is used for your laptop's
> power management. I use APM. There is a very nice utility,
> called asapm, that works with APM. It has a 48x48 display
> that shows the battery life graphically and numerically.
> I swallow it into FvwmButtons.
>
> You can get asapm from http://www.tigr.net/afterstep/download/
>
> Asapm is a part of the Afterstep window manager however it
> works just fine as a stand-alone utility in fvwm. You don't
> need the rest of Afterstep to compile and run asapm.
>
> --
> Rouben Rostamian

I use a fvwmscript to watch acpi battery level.
I have a small shell script 'bat_level' that just does
"acpi | sed -e 's/^.*, \([0-9]*\)%.*$/\1%/g'"
to get the % value
This is called by FvwmApplet-ACPI (attached) which just displays this.
Swallow this via
*PanelBar: (2x1 Swallow (Kill) "FvwmApplet-ACPI" "FvwmScript FvwmApplet-ACPI")

And bobs-your-uncle there it is. Change fonts etc to match your desktop as
needed

Chris

-- 
Is There Life Before Coffee?


--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Feb 24 2005 - 22:52:23 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST