aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sway/.config
diff options
context:
space:
mode:
Diffstat (limited to 'sway/.config')
-rw-r--r--sway/.config/sway/config2
-rw-r--r--sway/.config/systemd/user/sway-session-pre.target6
-rw-r--r--sway/.config/systemd/user/sway-session.target5
-rw-r--r--sway/.config/systemd/user/sway-session.target.d/xdg-desktop-autostart.conf3
4 files changed, 12 insertions, 4 deletions
diff --git a/sway/.config/sway/config b/sway/.config/sway/config
index 4ca18ff..cbd7163 100644
--- a/sway/.config/sway/config
+++ b/sway/.config/sway/config
@@ -183,4 +183,4 @@ bar {
include ~/.config/sway/config.d/*
include /etc/sway/config.d/*
-exec_always "systemctl --user import-environment {,WAYLAND_}DISPLAY SWAYSOCK; systemctl --user start sway-session.target"
+exec_always systemctl --user start sway-session.target
diff --git a/sway/.config/systemd/user/sway-session-pre.target b/sway/.config/systemd/user/sway-session-pre.target
new file mode 100644
index 0000000..99c36c9
--- /dev/null
+++ b/sway/.config/systemd/user/sway-session-pre.target
@@ -0,0 +1,6 @@
+[Unit]
+Description=Session services which should run early before the sway session is brought up
+Documentation=man:systemd.special(7)
+Before=sway-session.target
+BindsTo=wayland-session-pre.target
+Before=wayland-session-pre.target
diff --git a/sway/.config/systemd/user/sway-session.target b/sway/.config/systemd/user/sway-session.target
index 7093368..0c57b61 100644
--- a/sway/.config/systemd/user/sway-session.target
+++ b/sway/.config/systemd/user/sway-session.target
@@ -1,6 +1,5 @@
[Unit]
-Description=sway session
+Description=Current sway user session
Documentation=man:systemd.special(7)
BindsTo=wayland-session.target
-Wants=wayland-session-pre.target
-After=wayland-session-pre.target
+Before=wayland-session.target
diff --git a/sway/.config/systemd/user/sway-session.target.d/xdg-desktop-autostart.conf b/sway/.config/systemd/user/sway-session.target.d/xdg-desktop-autostart.conf
new file mode 100644
index 0000000..1387784
--- /dev/null
+++ b/sway/.config/systemd/user/sway-session.target.d/xdg-desktop-autostart.conf
@@ -0,0 +1,3 @@
+[Unit]
+Wants=xdg-desktop-autostart.target
+Before=xdg-desktop-autostart.target