# Written by: Maciej Delmanowski <harnir@linux.net.pl>


# How long to wait before closing FVWM?
SetEnv Exit-Timeout "3"

DestroyFunc Exit
AddToFunc Exit
+ I All () Close
+ I Exec killall fvwm-crystal.volumed
+ I DestroyModuleConfig QuitInfo: *
+ I Style QuitInfo NoTitle
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Timeout $[Exit-Timeout] Quit "     $[fc-locale-Closing_please_wait]   %%  "
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I *QuitInfo: Line center
+ I Module FvwmForm QuitInfo

# A little menu...
DestroyMenu /Exit
AddToMenu /Exit $[fc-locale-Exit] Title
+ '$[fc-locale-Logout]'   Exit
+ '$[fc-locale-Restart_session]'     Restart
Test (x sudo) + "" Nop
Test (x sudo) + '$[fc-locale-Turn_off_computer]' A sudo shutdown -h now
Test (x sudo) + '$[fc-locale-Restart_computer]' A sudo shutdown -r now

