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