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