sway: Add systemd-user target for sway-session

This commit is contained in:
Peter Cai 2022-10-30 21:16:14 -04:00
parent 293826355f
commit d7e8485f6e
2 changed files with 10 additions and 0 deletions

View File

@ -265,6 +265,10 @@ focus_follows_mouse no
for_window [app_id="pavucontrol"] floating enable
# Start the systemd-user target for sway and import environment
# Makes service management a bit cleaner
exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"
exec nm-applet --indicator
exec blueman-applet
exec mako --config ~/.config/mako/mako.conf

View File

@ -0,0 +1,6 @@
[Unit]
Description=Sway compositor session
Documentation=man:systemd.special
BindsTo=graphical-session.target
Wants=graphical-session-pre.target
After=graphical-session-pre.target