diff --git a/.local/bin/dmenuexit b/.local/bin/dmenuexit index bef64bc..27f3929 100755 --- a/.local/bin/dmenuexit +++ b/.local/bin/dmenuexit @@ -12,7 +12,7 @@ ACTION="$(xargs -n 1 <<<"$COMMANDS" | dmenu $DMENU_ARGS -p "exitctl")" [ -z "$ACTION" ] && exit 1 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 echo "INFO: Action confirmed."