#!/bin/sh # simple power menu script source $HOME/.config/dmenu/config case "$(printf "shutdown\\nreboot" | $DMENU -p "Choose your poison")" in "shutdown") poweroff ;; "reboot") reboot ;; esac