aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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