]> danix's work - my-dotfiles.git/blob - home-bin/i3-exit
efa7dc808dbb26e6521bf79c7983c8fb4086c872
[my-dotfiles.git] / home-bin / i3-exit
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