From: <dom...@us...> - 2017-01-12 16:24:20
|
Revision: 876 http://sourceforge.net/p/fvwm-crystal/code/876 Author: dominique_libre Date: 2017-01-12 16:24:18 +0000 (Thu, 12 Jan 2017) Log Message: ----------- support for systemd shutdon, reboot, hibernation, suspend and hybrid sleep Modified Paths: -------------- ChangeLog fvwm/components/functions/Exit Added Paths: ----------- fvwm/components/functions/Exit-systemctl Modified: ChangeLog =================================================================== --- ChangeLog 2016-12-29 09:34:43 UTC (rev 875) +++ ChangeLog 2017-01-12 16:24:18 UTC (rev 876) @@ -1,5 +1,9 @@ ChangeLog for FVWM-Crystal +jeudi 12 janvier 2017 ++ functions/Exit-systemctl, + functions/Exit: support for systemd shutdon, reboot, hibernation, suspend and hybrid sleep. + jeudi 29 décembre 2016 scripts/XDG-Menu: fix root menu title to work with current fvwm-desktop-menu version. Modified: fvwm/components/functions/Exit =================================================================== --- fvwm/components/functions/Exit 2016-12-29 09:34:43 UTC (rev 875) +++ fvwm/components/functions/Exit 2017-01-12 16:24:18 UTC (rev 876) @@ -49,14 +49,23 @@ Test (x /usr/sbin/pm-suspend-hybrid) + '%22x22/fvwm-crystal/gdm.png%$[gt.Resume hybride]' S pm-suspend-hybrid Test (x /usr/sbin/pm-hibernate) + '%22x22/fvwm-crystal/gdm.png%$[gt.Suspend to disk]' S pm-hibernate Test (x /usr/sbin/pm-powersave) + '%22x22/fvwm-crystal/gdm.png%$[gt.Powersave]' S pm-powersave +Test (X systemctl) + '' Nop +Test (X systemctl) + '%22x22/fvwm-crystal/gdm.png%$[gt.Resume to RAM]' S systemctl suspend +Test (X systemctl) + '%22x22/fvwm-crystal/gdm.png%$[gt.Resume hybride]' S systemctl hybrid-sleep +Test (X systemctl) + '%22x22/fvwm-crystal/gdm.png%$[gt.Suspend to disk]' S systemctl hibernate Test (EnvIsSet SESSION_MANAGER) + '' Nop Test (EnvIsSet SESSION_MANAGER) + '%22x22/fvwm-crystal/gdm.png%$[gt.Save session]' Exec exec gnome-session-save --gui Test (EnvIsSet SESSION_MANAGER) + '%22x22/fvwm-crystal/gdm.png%$[gt.Manage session]' Exec exec gnome-session-properties +DestroyFunc Exit-SelectExitManager +AddToFunc Exit-SelectExitManager ++ I Test (X systemctl) Include components/functions/Exit-systemctl ++ I TestRc (NoMatch) Include components/functions/Exit-sudo + DestroyFunc Exit-SelectLoginManager AddToFunc Exit-SelectLoginManager -+ I Test (x gdmflexiserver) PipeRead 'pidof gdm > /dev/null && echo "Include components/functions/Exit-gdm" || echo "Test (x sudo) Include components/functions/Exit-sudo"' -+ I TestRc (NoMatch) Include components/functions/Exit-sudo ++ I Test (X gdmflexiserver) PipeRead 'pidof gdm > /dev/null && echo "Include components/functions/Exit-gdm" || echo "Exit-SelectExitManager"' ++ I TestRc (NoMatch) Exit-SelectExitManager Exit-SelectLoginManager Test (x /usr/sbin/pm-hibernate) AddToFunc ExitFunction I Test (ToRestart) KillAutoHibernate Added: fvwm/components/functions/Exit-systemctl =================================================================== --- fvwm/components/functions/Exit-systemctl (rev 0) +++ fvwm/components/functions/Exit-systemctl 2017-01-12 16:24:18 UTC (rev 876) @@ -0,0 +1,9 @@ +# Exit commands - works with systemd +# Created by: Dominique Michel <dom...@us...> + +AddToMenu /Exit +Test (X systemctl) + "" Nop +Test (X systemctl) + '%22x22/fvwm-crystal/system-reboot.png%$[gt.Reboot computer]' S systemctl reboot +Test (X systemctl) + '%22x22/fvwm-crystal/system-shutdown.png%$[gt.Turn off computer]' S systemctl poweroff + +# vim:ft=fvwm This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |