dotfiles

My dotfiles used for LARBS
Log | Files | Refs | Submodules | README | LICENSE

commit f08f4b0b7f8bf4c569f679f301313d563406b851
parent 87dda7cdc350b06d9929c1569d0a6e8f3e8a2926
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed,  6 May 2020 14:34:33 -0400

openrc fixes

Diffstat:
M.local/bin/sysact | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.local/bin/sysact b/.local/bin/sysact @@ -2,8 +2,10 @@ # A dmenu wrapper script for system functions. +# For non-systemd init systems. case "$(readlink -f /sbin/init)" in - *runit-init) hib="sudo -A zzz" ;; + *runit*) hib="sudo -A zzz" ;; + *openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p" ;; esac cmds="\ @@ -11,8 +13,8 @@ cmds="\ 🚪 leave dwm kill -TERM $(pidof -s dwm) ♻ renew dwm kill -HUP $(pidof -s dwm) 🐻 hibernate ${hib:-sudo -A systemctl suspend-then-hibernate} -🔃 reboot sudo -A reboot -🖥 shutdown sudo -A shutdown -h now" +🔃 reboot ${reb:-sudo -A reboot} +🖥 shutdown ${shut:-sudo -A shutdown -h now}" choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1