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