dotfiles/scripts/confirm-menu

11 lines
201 B
Plaintext
Raw Permalink Normal View History

2022-02-06 19:45:28 +01:00
#!/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