feat(sway): enable a sway-session systemd target when sway starts

This commit is contained in:
Bruno Carlin 2025-02-11 15:23:05 +01:00
parent 1d0ec14eed
commit aab5d73c0f
2 changed files with 10 additions and 0 deletions

View file

@ -310,3 +310,7 @@ for_window [class="^kitty$" instance="^meta$"] move scratchpad, scratchpad show
#exec --no-startup-id nextcloud
for_window [shell="xwayland"] title_format "%title [xwayland]"
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