summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-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 ;;