sysact added

This commit is contained in:
Luke Smith 2020-04-14 22:10:38 -04:00
parent 54f691a078
commit dff66cd1ef
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

15
.local/bin/sysact Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
# A dmenu wrapper script for system functions.
cmds="\
lock screen slock
leave dwm kill -TERM $(pidof -s dwm)
refresh dwm kill -HUP $(pidof -s dwm)
reboot sudo -A reboot
shutdown sudo -A shutdown -h now
"
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)"
`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2`