systemd compatibility

This commit is contained in:
Luke Smith 2020-05-06 09:50:00 -04:00
parent d20ba52404
commit 87dda7cdc3
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -2,11 +2,15 @@
# A dmenu wrapper script for system functions.
case "$(readlink -f /sbin/init)" in
*runit-init) hib="sudo -A zzz" ;;
esac
cmds="\
🔒 lock slock
🚪 leave dwm kill -TERM $(pidof -s dwm)
♻ renew dwm kill -HUP $(pidof -s dwm)
🐻 hibernate sudo -A zzz
🐻 hibernate ${hib:-sudo -A systemctl suspend-then-hibernate}
🔃 reboot sudo -A reboot
🖥 shutdown sudo -A shutdown -h now"