Change default selection.

This commit is contained in:
dabruh 2022-06-08 21:27:38 +02:00
parent f657438112
commit 33906348f0
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ ACTION="$(xargs -n 1 <<<"$COMMANDS" | dmenu $DMENU_ARGS -p "exitctl")"
[ -z "$ACTION" ] && exit 1 [ -z "$ACTION" ] && exit 1
echo "INFO: Selected action $ACTION." echo "INFO: Selected action $ACTION."
CONFIRMATION="$(xargs -n 1 <<<"No Yes" | dmenu $DMENU_ARGS -p "Are you sure you want to ${ACTION,,}?")" CONFIRMATION="$(xargs -n 1 <<<"Yes No" | dmenu $DMENU_ARGS -p "Are you sure you want to ${ACTION,,}?")"
{ [ -z "$CONFIRMATION" ] || [[ "$CONFIRMATION" != "Yes" ]]; } && exit 1 { [ -z "$CONFIRMATION" ] || [[ "$CONFIRMATION" != "Yes" ]]; } && exit 1
echo "INFO: Action confirmed." echo "INFO: Action confirmed."