notes/scripts/prompt
2023-11-29 21:16:08 -08:00

7 lines
No EOL
196 B
Bash
Executable file

#!/bin/sh
# Opens a basic yes/no prompt with dmenu
# This is useful for confirming whether an action should be taken
if [ $(printf "No\nYes" | dmenu -fn "12" -i -p "$1") = "Yes" ]; then
$2
fi