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

[ $(echo -e "No\nYes" | dmenu -i -p "$1") \
== "Yes" ] && $2