diff --git a/wms_session.sh b/wms_session.sh index becfde8..7410f2e 100755 --- a/wms_session.sh +++ b/wms_session.sh @@ -7,11 +7,12 @@ KBRELOAD="pkill -usr1 -x sxhkd" # keybindings reload LOCK="slock" # lock screen monitor MOFF="xset dpms force off" # poweroff monitor -HB="doas zzz -Z" # hibernate +SP="doas zzz -z" # suspend to RAM +HB="doas zzz -Z" # hibernate RB="doas shutdown -r now" # reboot POFF="doas shutdown -h now" # poweroff -EXIT="pkill wew && pkill sxhkd" # exit session -PROMPT="reload-key\nlock\nmonitor-off\nhalt\nreboot\nhibernate\nexit" +EXIT="pkill sxhkd; pkill wew" # exit session +PROMPT="reload-key\nlock\nmonitor-off\nhalt\nreboot\nsuspend\nhibernate\nexit" option=`echo $PROMPT | $XMENU` if [ ${#option} -gt 0 ]; then @@ -25,6 +26,9 @@ if [ ${#option} -gt 0 ]; then monitor-off) $MOFF ;; + suspend) + $SP + ;; hibernate) $HB ;;