Stop the sway-session.target when exiting sway.

This commit is contained in:
Tom Alexander 2025-01-20 18:43:43 -05:00
parent 99edb2d161
commit d537aa599b
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -11,6 +11,7 @@ let
text = '' text = ''
# Trigger graphical-session.target through sway-session.target so systemd user units can depend on it. # Trigger graphical-session.target through sway-session.target so systemd user units can depend on it.
exec systemctl --user start sway-session.target exec systemctl --user start sway-session.target
exec swaymsg -t subscribe '["shutdown"]' && systemctl --user stop sway-session.target
''; '';
}; };
in in