Re: FVWM: Query about .fvwm2-menu

From: Dan Espen <dane_at_bae.bellcore.com>
Date: Fri, 02 May 1997 10:10:53 -0400

Uncle Bulgaria <Bulgaria_at_Wimbledon.Common.com> writes:
> I currently have the following in the .fvwm2-menu.
>
...
>
> The problem I'm having (Or perhaps the request I'm making?) is for some
> way of getting Fvwm2 to run a script before actually quitting. The
> situation is that I want to update a couple of 'I'm here' status files
> before leaving, pretty much like turning on your answering machine
> before you go out I 'spose. What I'd ideally like is to be able to write
> something like
>
> + "&Quit" Exec my_shell_script then Quit
>
> but I can't seem to see any way of doing it. Is it possible, and if not
> how about sticking it in the next version, maybe with a syntax like
>
> + "&Quit" command1 ; command2 ; command3
>
> Anyone?

Here is one untested way:

AddToFunc ImGone "I" Exec my_shell_script
+ "I" Quit

Then put this is the menu:

+ "&Quit" ImGone

> Cheers,
> Lee.
> --

--
Dan Espen                                    Phone: (908) 699-5570
dane_at_bae.bellcore.com
444 Hoes Lane  Room RRC 1C-214
Piscataway, NJ 08854
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri May 02 1997 - 09:12:37 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST