]>
| Commit | Line | Data |
|---|---|---|
| 1 | #!/bin/bash | |
| 2 | rofi_command="rofi -theme darknix/i3exit.rasi" | |
| 3 | ||
| 4 | NO="" | |
| 5 | YES="" | |
| 6 | ||
| 7 | options="$YES\n$NO" | |
| 8 | chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)" | |
| 9 | case $chosen in | |
| 10 | "$YES") | |
| 11 | # exit i3 | |
| 12 | i3-msg exit | |
| 13 | ;; | |
| 14 | "$NO") | |
| 15 | # do nothing | |
| 16 | exit 0 | |
| 17 | ;; | |
| 18 | esac |