dotfiles/scripts/confirm-menu

11 lines
201 B
Bash
Executable File

#!/bin/bash
options="No\nNo\nNo\nNo\nNo\nYes"
selected=$(echo -e $options | rofi -p "$1" -mesg "Are you sure you want to run \"$2\"?" -dmenu -theme appsmenu)
case $selected in
"Yes")
$2
;;
esac