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

5 lines
264 B
Plaintext

# 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