From a1dbd4747d9b65d98388995b2e9243a9968015d5 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 19 Feb 2025 12:36:07 -0500 Subject: Refactor sway config to let systemd manage subservices like kanshi and swayidle --- dot_config/systemd/user/sway-session-pre.target | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dot_config/systemd/user/sway-session-pre.target (limited to 'dot_config/systemd/user/sway-session-pre.target') diff --git a/dot_config/systemd/user/sway-session-pre.target b/dot_config/systemd/user/sway-session-pre.target new file mode 100644 index 0000000..3215544 --- /dev/null +++ b/dot_config/systemd/user/sway-session-pre.target @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is inspired from systemd's `graphical-session-pre.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=Session services which should run early before the sway session is brought up +Documentation=man:systemd.special(7) +Requires=basic.target +Before=sway-session.target +RefuseManualStart=yes +StopWhenUnneeded=yes +BindsTo=wayland-session-pre.target +After=wayland-session-pre.target -- cgit v1.2.3