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