sysact added
This commit is contained in:
parent
54f691a078
commit
dff66cd1ef
1 changed files with 15 additions and 0 deletions
15
.local/bin/sysact
Executable file
15
.local/bin/sysact
Executable 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`
|
Loading…
Reference in a new issue