#!/usr/bin/bash

set -euo pipefail

if [[ -z "${BEMENU_OPTS:-}" ]];then
	BEMENU_OPTS='--hb "#005577" --tf "#dcdccc" --hf "#dcdccc" --nf "#dcdccc" --fn "Terminus 10" --grab'
	export BEMENU_OPTS
fi

ans=$(echo -e 'No\nYes' | bemenu -i -p "$1")

if [[ "${ans}" == "Yes" ]];then
  $2
fi
