aboutsummaryrefslogtreecommitdiff
path: root/dot_config/systemd/user/wayland-session.target
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2025-02-19 12:36:07 -0500
committerRyan Kavanagh <rak@rak.ac>2025-02-20 10:15:44 -0500
commita1dbd4747d9b65d98388995b2e9243a9968015d5 (patch)
treea77eb4e0fa2a37cc17ea291d8dd083f62c4dcdb2 /dot_config/systemd/user/wayland-session.target
parentfix fringe indicators frl (diff)
Refactor sway config to let systemd manage subservices like kanshi and swayidle
Diffstat (limited to '')
-rw-r--r--dot_config/systemd/user/wayland-session.target18
-rw-r--r--dot_config/systemd/user/wayland-session.target.wants/symlink_kanshi.service1
-rw-r--r--dot_config/systemd/user/wayland-session.target.wants/symlink_swaybg-random.service (renamed from dot_config/systemd/user/default.target.wants/symlink_swaybg-random.service)0
-rw-r--r--dot_config/systemd/user/wayland-session.target.wants/symlink_swayidle.service1
4 files changed, 20 insertions, 0 deletions
diff --git a/dot_config/systemd/user/wayland-session.target b/dot_config/systemd/user/wayland-session.target
new file mode 100644
index 0000000..f4cc2b7
--- /dev/null
+++ b/dot_config/systemd/user/wayland-session.target
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: LGPL-2.1+
+#
+# This file is inspired from systemd's `graphical-session.target`
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Current wayland user session
+Documentation=man:systemd.special(7)
+Requires=basic.target
+RefuseManualStart=yes
+StopWhenUnneeded=yes
+BindsTo=graphical-session.target
+Wants=graphical-session-pre.target
+After=graphical-session-pre.target
diff --git a/dot_config/systemd/user/wayland-session.target.wants/symlink_kanshi.service b/dot_config/systemd/user/wayland-session.target.wants/symlink_kanshi.service
new file mode 100644
index 0000000..7d5903e
--- /dev/null
+++ b/dot_config/systemd/user/wayland-session.target.wants/symlink_kanshi.service
@@ -0,0 +1 @@
+/home/rak/.config/systemd/user/kanshi.service
diff --git a/dot_config/systemd/user/default.target.wants/symlink_swaybg-random.service b/dot_config/systemd/user/wayland-session.target.wants/symlink_swaybg-random.service
index 2ebb1f9..2ebb1f9 100644
--- a/dot_config/systemd/user/default.target.wants/symlink_swaybg-random.service
+++ b/dot_config/systemd/user/wayland-session.target.wants/symlink_swaybg-random.service
diff --git a/dot_config/systemd/user/wayland-session.target.wants/symlink_swayidle.service b/dot_config/systemd/user/wayland-session.target.wants/symlink_swayidle.service
new file mode 100644
index 0000000..a53991f
--- /dev/null
+++ b/dot_config/systemd/user/wayland-session.target.wants/symlink_swayidle.service
@@ -0,0 +1 @@
+/home/rak/.config/systemd/user/swayidle.service