monakhos/ansible/templates/sway_systemd_trigger_target

3 lines
201 B
Text
Raw Normal View History

2024-07-09 10:51:06 +00:00
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