From b94c16540f41008d05b11fb46e448b8f21c44790 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Thu, 26 Aug 2021 12:13:27 +0200 Subject: [PATCH] Switch wm without rebooting Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_wmtoggle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/core/sxmo_wmtoggle.sh b/scripts/core/sxmo_wmtoggle.sh index f94427b..d1ef094 100644 --- a/scripts/core/sxmo_wmtoggle.sh +++ b/scripts/core/sxmo_wmtoggle.sh @@ -3,10 +3,10 @@ case "$(realpath /var/lib/tinydm/default-session.desktop)" in /usr/share/wayland-sessions/swmo.desktop) sudo tinydm-set-session -f -s /usr/share/xsessions/sxmo.desktop + pkill sway ;; /usr/share/xsessions/sxmo.desktop) sudo tinydm-set-session -f -s /usr/share/wayland-sessions/swmo.desktop + pkill dwm ;; esac - -sudo reboot