summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-17 22:44:46 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-17 22:44:46 +0100
commitb440f1ad4a6441de76bce0f0f4ddc1cf21ca3a6b (patch)
treeacb186b03da30d2b7aff4a8874fd0562be95d1e2
parent5b406eba8fda3e2c58b5e8f48623abbeeb78428a (diff)
Add sleep since I fixed the nvidia suspend bug
-rwxr-xr-x.local/bin/sysact3
1 files changed, 2 insertions, 1 deletions
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 ;;