Debian Codegraph @

fvwm/components/functions/Exit-Safe-sudo

raw
1 # Exit commands - works with sudo
2 # Created by: Pawel "NEMO" Drygas <[email protected]>
3
4 AddToMenu /Exit
5 Test (x sudo) + "" Nop
6 Test (x sudo) + '%22x22/fvwm-crystal/system-reboot.png%$[gt.Reboot computer]' Popup /Exit/Reboot
7 Test (x sudo) + '%22x22/fvwm-crystal/system-shutdown.png%$[gt.Turn off computer]' Popup /Exit/Halt
8
9 DestroyMenu /Exit/Reboot
10 AddToMenu /Exit/Reboot
11 + '$[gt.I am sure]' S shutdown -r now
12
13 DestroyMenu /Exit/Halt
14 AddToMenu /Exit/Halt
15 + '$[gt.I am sure]' S shutdown -h now
16
17 # vim:ft=fvwm