Kill user session before exiting sway so that programs aren't still running in the new session

This commit is contained in:
John Mertz 2024-10-15 16:21:02 -06:00
parent 6a82d574f5
commit 7396945594
1 changed files with 1 additions and 0 deletions

View File

@ -2,5 +2,6 @@
if [ -z ${SWAYSOCK+x} ]; then
i3 exit
else
sudo systemctl stop user@$(id -u).service
sway exit
fi