File: Exit-Safe-sudo

package info (click to toggle)
fvwm-crystal 3.4.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 21,708 kB
  • sloc: sh: 3,265; cs: 1,335; python: 875; makefile: 214
file content (17 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Exit commands - works with sudo
# Created by: Pawel "NEMO" Drygas <nemo@braxis.org>

AddToMenu /Exit 
Test (x sudo) + "" Nop
Test (x sudo) + '%22x22/fvwm-crystal/system-reboot.png%$[gt.Reboot computer]' Popup /Exit/Reboot
Test (x sudo) + '%22x22/fvwm-crystal/system-shutdown.png%$[gt.Turn off computer]' Popup /Exit/Halt

DestroyMenu /Exit/Reboot
AddToMenu /Exit/Reboot
+ '$[gt.I am sure]' S shutdown -r now

DestroyMenu /Exit/Halt
AddToMenu /Exit/Halt
+ '$[gt.I am sure]' S shutdown -h now

# vim:ft=fvwm