aboutsummaryrefslogtreecommitdiff
path: root/prompt.sh
blob: 6d262c10629ea42cb04f2b8d4ae370b116352922 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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" \
-nb "#000000" \
-nf "#60ff00" \
-sb "#60f000" \
-sf "#000000") \
== "Yes" ] && $2