aboutsummaryrefslogtreecommitdiff
path: root/dot_config/systemd
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2024-12-24 15:24:26 -0500
committerRyan Kavanagh <rak@rak.ac>2024-12-24 15:24:26 -0500
commit2bd60e4b3d3947d7dc57051c0d3461f00466550a (patch)
tree853931fae8eb1f14baa2277fe9daafc19e2cb370 /dot_config/systemd
parentupdate mbsync (diff)
sway systemd config
Diffstat (limited to 'dot_config/systemd')
-rw-r--r--dot_config/systemd/user/sway-session-shutdown.target10
-rw-r--r--dot_config/systemd/user/sway-session.target6
2 files changed, 16 insertions, 0 deletions
diff --git a/dot_config/systemd/user/sway-session-shutdown.target b/dot_config/systemd/user/sway-session-shutdown.target
new file mode 100644
index 0000000..3e21266
--- /dev/null
+++ b/dot_config/systemd/user/sway-session-shutdown.target
@@ -0,0 +1,10 @@
+[Unit]
+Description=Shutdown running Sway session
+DefaultDependencies=no
+StopWhenUnneeded=true
+
+Conflicts=graphical-session.target graphical-session-pre.target
+After=graphical-session.target graphical-session-pre.target
+
+Conflicts=sway-session.target
+After=sway-session.target
diff --git a/dot_config/systemd/user/sway-session.target b/dot_config/systemd/user/sway-session.target
new file mode 100644
index 0000000..56029b8
--- /dev/null
+++ b/dot_config/systemd/user/sway-session.target
@@ -0,0 +1,6 @@
+[Unit]
+Description=Sway session
+Documentation=man:systemd.special(7)
+BindsTo=graphical-session.target
+Wants=graphical-session-pre.target
+After=graphical-session-pre.target