feat(sway): add sway systemd trigger

This commit is contained in:
Matthieu Bessat 2024-07-09 12:51:06 +02:00
parent 43daa9a5e6
commit 5055fefcf8
4 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,2 @@
exec "systemctl --user import-environment {,WAYLAND_}DISPLAY SWAYSOCK; systemctl --user start sway-session.target"
exec swaymsg -t subscribe '["shutdown"]' && systemctl --user stop sway-session.target