.dotfiles/.local/bin/menu-shutdown

18 lines
268 B
Bash
Executable file

#!/bin/sh
action=$(echo -e "Shutdown\nReboot\nLogout" | $MENU)
case "$action" in
"Shutdown")
systemctl poweroff -i
;;
"Reboot")
systemctl reboot
;;
"Logout")
systemctl --user exit
;;
*)
;;
esac