]> danix's work - my-dotfiles.git/blame_incremental - home-bin/i3-exit
added mail script to polybar
[my-dotfiles.git] / home-bin / i3-exit
... / ...
CommitLineData
1#!/bin/bash
2rofi_command="rofi -theme darknix/i3exit.rasi"
3
4NO=""
5YES=""
6
7options="$YES\n$NO"
8chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)"
9case $chosen in
10 "$YES")
11 # exit i3
12 i3-msg exit
13 ;;
14 "$NO")
15 # do nothing
16 exit 0
17 ;;
18esac