logout menu update

This commit is contained in:
Benjamin Palko 2025-03-31 22:24:41 -04:00
parent 5cc4901b0c
commit bb41d9ca40

View file

@ -18,13 +18,13 @@ uptime="$(uptime -p | sed -e 's/up //g')"
host=$(hostname) host=$(hostname)
# Options # Options
shutdown=' Shutdown' shutdown=' Shutdown'
reboot=' Reboot' reboot='󰜉 Reboot'
lock=' Lock' lock=' Lock'
suspend=' Suspend' suspend='󰤄 Suspend'
logout=' Logout' logout='󰍃 Logout'
yes=' Yes' yes=' Yes'
no=' No' no=' No'
# Rofi CMD # Rofi CMD
rofi_cmd() { rofi_cmd() {
@ -70,17 +70,7 @@ run_cmd() {
amixer set Master mute amixer set Master mute
systemctl suspend systemctl suspend
elif [[ $1 == '--logout' ]]; then elif [[ $1 == '--logout' ]]; then
if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then hyprctl dispatch exit
openbox --exit
elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
bspc quit
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
hyprctl dispatch exit
fi
fi fi
else else
exit 0 exit 0