diff --git a/home/dot_config/sway/config.d/autostart b/home/dot_config/sway/config.d/autostart index 50c4a41..dc5278d 100644 --- a/home/dot_config/sway/config.d/autostart +++ b/home/dot_config/sway/config.d/autostart @@ -14,3 +14,6 @@ exec cliphist wipe # clipboard history exec wl-paste --watch cliphist store + +# Start sway session I guess ? +exec_always systemctl --user start sway-session.target diff --git a/home/dot_config/systemd/user/foot-server.socket.d/10-default-target.conf b/home/dot_config/systemd/user/foot-server.socket.d/10-default-target.conf index 323bfa2..782b168 100644 --- a/home/dot_config/systemd/user/foot-server.socket.d/10-default-target.conf +++ b/home/dot_config/systemd/user/foot-server.socket.d/10-default-target.conf @@ -1,2 +1,2 @@ [Install] -WantedBy=default.target +WantedBy=sway-session.target diff --git a/home/dot_config/systemd/user/sway-session.target b/home/dot_config/systemd/user/sway-session.target new file mode 100644 index 0000000..a6dadf9 --- /dev/null +++ b/home/dot_config/systemd/user/sway-session.target @@ -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