#!/bin/sh # calls dmenu with $1 as the prompt and "no" and "yes" as the options. # if "yes" is chosen, call $2. [ "$(printf "no\\nyes"|dmenu -p "$1")" = "yes" ] && $2