From b440f1ad4a6441de76bce0f0f4ddc1cf21ca3a6b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 17 Jan 2022 22:44:46 +0100 Subject: Add sleep since I fixed the nvidia suspend bug --- .local/bin/sysact | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.local/bin/sysact') diff --git a/.local/bin/sysact b/.local/bin/sysact index b07e1c9..ae4b2ec 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -6,9 +6,10 @@ case "$(readlink -f /sbin/init)" in *) ctl='loginctl' ;; esac -case "$(printf "󰌾 lock\n󰑐 renew dwm\n󰑙 reboot\n󰤆 shutdown\n󰇄 display off" | dmenu -i -p 'Action: ')" in +case "$(printf "󰌾 lock\n󰑐 renew dwm\n󰒲 sleep\n󰑙 reboot\n󰤆 shutdown\n󰇄 display off" | dmenu -i -p 'Action: ')" in '󰌾 lock') slock ;; '󰑐 renew dwm') kill -HUP "$(pgrep -u "$USER" "\bdwm$")" ;; + '󰒲 sleep') slock $ctl suspend -i ;; '󰑙 reboot') $ctl reboot ;; '󰤆 shutdown') $ctl poweroff ;; '󰇄 display off') xset dpms force off ;; -- cgit v1.2.3-70-g09d2