Re: FVWM: Quit verification

From: Fredrik \Vhrstr\vm <d92-foh_at_nada.kth.se>
Date: Mon, 4 Dec 1995 18:31:11 +0100 (MET)

On Mon, 4 Dec 1995, Gunnar Florus Johansen wrote:

> Is it possible to make FVWM 2 pop up a dialog box like Motif and HP Vue when a
> user wants to quit instead of having to put quit-verification in a
> sub-pulldown-menu ?

Yes. Use FvwmForm according to the manual. Short man:
Type this in an directory in your module path:

ln -s /yourfvwmpath/bin/FvwmForm QuitVerify

Type this in your .fvwmrc (ver 2) file:

*QuitVerifyGrabServer
*QuitVerifyFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
*QuitVerifyButtonFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
*QuitVerifyFore Black
*QuitVerifyBack #adadad
*QuitVerifyItemFore Black
*QuitVerifyItemBack #adadad
*QuitVerifyCommand Beep
*QuitVerifyLine center
*QuitVerifyText "Do you really want to logout?"
*QuitVerifyLine expand
*QuitVerifyButton quit "Logout" ^M
*QuitVerifyCommand Exec $HOME/bin/quit & # Favourite logout command!
*QuitVerifyButton quit "Cancel" ^[
*QuitVerifyCommand Nop

And add this to a Goodstuff button (or to a menu):

*FvwmButtons - quit.xpm Module QuitVerify

My favourite logout command is a shell:

kill -9 `ps -x | awk '/286323198/ && ! /awk/ {print $1}'`

For this to work the last line in the .xinitrc file should be:

sleep 286323198

All other commands in the .xinitrc should have an & after them.

Then you'll have it.

//Fredrik
--
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 Mon Dec 04 1995 - 11:31:23 GMT

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