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
|
||||
|
||||
|
|
6
systemd/.config/systemd/user/sway-session.target
Normal file
6
systemd/.config/systemd/user/sway-session.target
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=sway compositor session
|
||||
Documentation=man:systemd.special(7)
|
||||
BindsTo=graphical-session.target
|
||||
Wants=graphical-session-pre.target
|
||||
After=graphical-session-pre.target
|
Loading…
Add table
Reference in a new issue