2019-08-18 16:28:11 +00:00
|
|
|
#!/usr/bin/env sh
|
2018-04-07 03:47:29 +00:00
|
|
|
# A dmenu binary prompt script.
|
|
|
|
# Gives a dmenu prompt labeled with $1 to perform command $2.
|
|
|
|
# For example:
|
|
|
|
# `./prompt "Do you want to shutdown?" "shutdown -h now"`
|
|
|
|
|
2018-10-05 02:04:23 +00:00
|
|
|
[ "$(printf "No\\nYes" | dmenu -i -p "$1" -nb darkred -sb red -sf white -nf gray )" = "Yes" ] && $2
|