Re: FVWM: applet for displaying the battery status on a laptop

From: Micha Feigin <michf_at_post.tau.ac.il>
Date: Sun, 29 Feb 2004 13:45:31 +0200

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 majordomo_at_fvwm.org.
> To report problems, send mail to fvwm-owner_at_fvwm.org.
>

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 majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Feb 29 2004 - 05:49:13 GMT

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