scripts/dmenu_quit

21 lines
323 B
Bash
Executable File

#!/bin/bash
test=$(echo -e "Shutdown\nLogout\nSuspend\nReboot\nCancel" | dmenu -i -p "$1" -h 25)
case "$test" in
Shutdown)
poweroff
;;
Logout)
#herbstclient quit
killall xinit
;;
Suspend)
systemctl suspend
;;
Reboot)
reboot
;;
esac