check SXMO_WM instead of tinydm session when logging out

This could break if someone decides not to use tinydm, or uses
tinyd-set-session instead of togglewm.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
ArenM
2023-04-07 20:17:00 -04:00
committed by Anjandev Momi
parent 4da4bb9b1e
commit ce6514d490

View File

@@ -22,13 +22,9 @@ case "$1" in
;;
logout)
sxmo_hook_logout.sh
case "$(realpath /var/lib/tinydm/default-session.desktop)" in
*"swmo.desktop")
swaymsg exit
;;
*"sxmo.desktop")
pkill dwm
;;
case "$SXMO_WM" in
"sway") swaymsg exit ;;
"dwm") pkill dwm ;;
esac
;;
togglewm)