prompt (286B)
1 #!/usr/bin/env sh 2 # A dmenu binary prompt script. 3 # Gives a dmenu prompt labeled with $1 to perform command $2. 4 # For example: 5 # `./prompt "Do you want to shutdown?" "shutdown -h now"` 6 7 [ "$(printf "No\\nYes" | dmenu -i -p "$1" -nb darkred -sb red -sf white -nf gray )" = "Yes" ] && $2