Make prompt use wal colors

This commit is contained in:
yuriyurisuki 2018-08-09 01:57:28 +02:00 committed by GitHub
parent 5f4e64c09b
commit 92843fd4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,8 @@
# Gives a dmenu prompt labeled with $1 to perform command $2.
# For example:
# `./prompt "Do you want to shutdown?" "shutdown -h now"`
# Import the colors
. "${HOME}/.cache/wal/colors.sh"
[ $(echo -e "No\nYes" | dmenu -i -p "$1" -nb darkred -sb red -sf white -nf gray -fn mono) \
[ $(echo -e "No\nYes" | dmenu -i -p "$1" -nb "$color0" -sb "$color1" -sf "$color15" -nf "$color15" -fn mono) \
== "Yes" ] && $2