First commit adding linux exclusive scripts
This commit is contained in:
20
dmenu_quit
Executable file
20
dmenu_quit
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
test=$(echo -e "Shutdown\nLogout\nSuspend\nReboot\nCancel" | dmenu -i -p "$1")
|
||||
|
||||
case "$test" in
|
||||
Shutdown)
|
||||
poweroff
|
||||
;;
|
||||
Logout)
|
||||
#herbstclient quit
|
||||
killall xinit
|
||||
;;
|
||||
Suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
Reboot)
|
||||
reboot
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user