mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Add sleep option to sysact script
This commit is contained in:
parent
f05cb5e1bb
commit
9e3a14cbe4
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user