.dotfiles/.bin/menu-shutdown

11 lines
245 B
Bash
Executable file

#!/bin/sh
action=$(printf "shutdown\nreboot\nlogout\nautostart" | $DMENU)
case "$action" in
shutdown) systemctl poweroff -i ;;
reboot) systemctl reboot ;;
logout) systemctl --user exit ;;
autostart) autostart-manage run ;;
*) ;; esac