feat(sway): enable a sway-session systemd target when sway starts
This commit is contained in:
parent
1d0ec14eed
commit
aab5d73c0f
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue