Commit | Line | Data |
---|---|---|
fdd76fc5 | 1 | #!/bin/bash |
2 | rofi_command="rofi -theme blackpearl/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 | # take wallpaper.sh down with you | |
12 | for pid in $(cat /tmp/wallpaper.pid); do | |
13 | # sending all term signals. hopefully one of them will work! | |
14 | kill -15 $pid | |
15 | kill -1 $pid | |
16 | kill -9 $pid | |
17 | done | |
18 | rm /tmp/wallpaper.pid | |
19 | i3-msg exit | |
20 | ;; | |
21 | "$NO") | |
22 | exit 0 | |
23 | ;; | |
24 | esac |