mirror of
https://github.com/adi1090x/rofi.git
synced 2025-12-10 04:22:48 +01:00
parent
aba9eb3d1a
commit
2d22dbead4
@ -101,13 +101,17 @@ case $chosen in
|
||||
$logout)
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
|
||||
case "$DESKTOP_SESSION" in
|
||||
Openbox|openbox)
|
||||
openbox --exit
|
||||
elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
|
||||
;;
|
||||
bspwm)
|
||||
bspc quit
|
||||
elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
|
||||
;;
|
||||
i3)
|
||||
i3-msg exit
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
else
|
||||
|
||||
@ -101,13 +101,17 @@ case $chosen in
|
||||
$logout)
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
|
||||
case "$DESKTOP_SESSION" in
|
||||
Openbox|openbox)
|
||||
openbox --exit
|
||||
elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
|
||||
;;
|
||||
bspwm)
|
||||
bspc quit
|
||||
elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
|
||||
;;
|
||||
i3)
|
||||
i3-msg exit
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user