#!/bin/bash rofi_command="rofi -theme darknix/i3exit.rasi" NO="" YES="" options="$YES\n$NO" chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)" case $chosen in "$YES") # exit i3 i3-msg exit ;; "$NO") # do nothing exit 0 ;; esac