On Fri, Feb 27, 2004 at 06:57:28PM +0100, Marc Schlienger wrote:
> Hi,
> 
> I'm using Fvwm2 and need an applet for displaying the battery status on a 
> laptop. I've tried some WindowMaker applets but they did'nt work properly.
> For example, wmbatteries does'nt update the status. 
> Is there an application which works fine with Fvwm2 and ACPI?
> 
> Marc 
> 
> --
> 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 [EMAIL PROTECTED]
> To report problems, send mail to [EMAIL PROTECTED]
> 

Not exactly what you want but I use a dynamic menu to show to output of
acpi which keeps the desktop unclatered (I don't like much eye candy
since I rairly see the desktop anyway as most of the windows are
maximized).

This also shows the time in the title (can probably be done more
efficiently, but I didn't have the time yet, don't know if sed will be
lighter then perl for this).

DestroyMenu System
AddToMenu System "System" Title
+ DynamicPopUpAction      Function build_system_menu

DestroyFunc build_system_menu
AddToFunc build_system_menu
+ I DestroyMenu System
+ I Piperead 'perl -e \'open TIME, \"date +\\\"%T %a %b %d %Y %Z\\\"|\"; while 
(<TIME>) { chomp; print \"AddtoMenu System \\\"$_\\\" Title\\n\"}\''
+ I Piperead 'perl -e \'open ACPI, \"acpi -V|\"; while (<ACPI>) { chomp; s/^\\s\\s//; 
s/%/%%/g; print \"AddtoMenu System \\\"$_\\\" nop\\n\"}\''
+ I AddToMenu System DynamicPopDownAction Function destroy-system-menu
+ I ChangeMenuStyle "NoHotKeys" System

DestroyFunc destroy-system-menu
AddToFunc destroy-system-menu 
+ I DestroyMenu System
+ I AddToMenu System "System" Title
+ I AddToMenu System DynamicPopUpAction Function build_system_menu

--
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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to