#!/bin/sh case "$(printf "shutdown\\nreboot" | dmenu -p "Choose your poison")" in "shutdown") systemctl poweroff ;; "reboot") systemctl reboot ;; esac