dotfiles/bin/prompt

7 lines
277 B
Plaintext
Raw Normal View History

2019-12-23 03:44:26 +00:00
#!/usr/bin/env sh
# A simple prompt script.
# Based from Luke Smith's prompt script.
# https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/prompt
([ "$(printf "No\\nYes" | rofi -dmenu -p "$1")" = "Yes" ] && $2) || notify-send "The command "$2" failed to execute."