#!/bin/bash ans=$(printf "no\nyes" | dmenu -p "Shutdown?") if [ "$ans" = "yes" ]; then /bin/poweroff fi