scripts/dmenu_quit
2020-07-25 19:22:54 +02:00

21 lines
317 B
Bash
Executable File

#!/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