diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-10-25 18:02:25 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-10-25 18:02:25 -0400 |
commit | cb1a51092d12db12f7ba29e57daed6d64b311d38 (patch) | |
tree | 3c4e0bf555d079b9bc4f04889aa2cc6bb4f91255 /.local/bin/sysact | |
parent | 6312ef191a9ab7466ec72bb3aba7138816062c2f (diff) |
More cleanup
Diffstat (limited to '.local/bin/sysact')
-rwxr-xr-x | .local/bin/sysact | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.local/bin/sysact b/.local/bin/sysact deleted file mode 100755 index 5249070..0000000 --- a/.local/bin/sysact +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -# A dmenu wrapper script for system functions. - -# For non-systemd init systems. -case "$(readlink -f /sbin/init)" in - *runit*) hib="sudo -A zzz" ;; - *openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;; -esac - -cmds="\ - lock sudo loginctl lock-sessions - leave dwm killall xinit - renew dwm killall dwm - hibernate sudo loginctl hibernate - reboot ${reb:-sudo -A reboot} - shutdown ${shut:-sudo -A shutdown -h now} - display off xset dpms force off" - -choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1 - -`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-` |