dotfiles/bin/prompt
2019-12-23 11:44:26 +08:00

7 lines
277 B
Bash

#!/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."