dotfiles/config/sway/config.d/20-systemd-user-sway-target.conf

5 lines
264 B
Plaintext
Raw Normal View History

2024-09-14 12:51:03 +00:00
# see https://github.com/swaywm/sway/wiki/Systemd-integration
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