mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
sysact added
This commit is contained in:
parent
54f691a078
commit
dff66cd1ef
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…
x
Reference in New Issue
Block a user