From f2681af0872b386cc8233bdc06076b3dcc09fee8 Mon Sep 17 00:00:00 2001 From: root_sti Date: Thu, 24 Aug 2023 11:29:51 -0300 Subject: [PATCH] Suspend to RAM added. --- wms_session.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 ;;