Add sleep option to sysact script

This commit is contained in:
Ethan Marshall 2021-04-09 12:38:16 +01:00
parent f05cb5e1bb
commit 9e3a14cbe4
No known key found for this signature in database
GPG Key ID: EC2FAEF4DB8968D8

View File

@ -4,7 +4,7 @@
# For non-systemd init systems.
case "$(readlink -f /sbin/init)" in
*runit*) hib="sudo -A zzz" ;;
*runit*) slp="sudo -A zzz -z"; hib="sudo -A zzz -Z" ;;
*openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;;
esac
@ -12,7 +12,8 @@ cmds="\
🔒 lock slock
🚪 leave dwm kill -TERM $(pgrep -u $USER "\bdwm$")
♻ renew dwm kill -HUP $(pgrep -u $USER "\bdwm$")
🐻 hibernate slock ${hib:-systemctl suspend-then-hibernate -i}
💤 sleep slock ${slp:-systemctl suspend -i}
🐻 hibernate slock ${hib:-systemctl hibernate -i}
🔃 reboot ${reb:-sudo -A reboot}
🖥 shutdown ${shut:-sudo -A shutdown -h now}
📺 display off xset dpms force off"