aboutsummaryrefslogtreecommitdiff
path: root/prompt.sh
blob: b9e8fbd18b78b163669262ed54047ca04acdd162 (plain)
1
2
3
4
5
#!/bin/bash
# A dmenu binary prompt script.
# Gives a dmenu prompt labeled with $1 to perform command $2.

[ $(printf "No\nYes" | dmenu -l 2 -p "$1") == "Yes" ] && $2