mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Make prompt suitable for existing scripts
This commit is contained in:
parent
9e58677093
commit
bbcb898aee
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# A dmenu binary prompt script.
|
# A dmenu binary prompt script.
|
||||||
# Gives a dmenu prompt labeled with $1 to perform command $2.
|
# Gives a dmenu prompt labeled with $1.
|
||||||
# For example:
|
# For example:
|
||||||
# `./prompt "Do you want to shutdown?" "shutdown -h now"`
|
# `./prompt "Do you want to shutdown?" && shutdown -h now
|
||||||
|
|
||||||
[ "$(printf "No\\nYes" | dmenu -i -p "$1" -nb darkred -sb red -sf white -nf gray )" = "Yes" ] && $2
|
[ "$(printf "No\\nYes" | dmenu -i -p "$1")" = "Yes" ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user