aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sway/.config/systemd
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-02-12 12:45:26 -0600
committerToby Vincent <tobyv@tobyvin.dev>2024-02-12 12:45:26 -0600
commit0efe08d7b844dc57caee595403fcb7c999040f82 (patch)
tree809f0c49711bb624a9ef10bc05ee74438afe4710 /sway/.config/systemd
parentde62b9c5e8f8af64a16121c69d048e5ab03447a6 (diff)
fix(sway): improve systemd target dependencies
Diffstat (limited to 'sway/.config/systemd')
-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
3 files changed, 11 insertions, 3 deletions
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