From 2bd60e4b3d3947d7dc57051c0d3461f00466550a Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 24 Dec 2024 15:24:26 -0500 Subject: sway systemd config --- dot_config/systemd/user/sway-session-shutdown.target | 10 ++++++++++ dot_config/systemd/user/sway-session.target | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 dot_config/systemd/user/sway-session-shutdown.target create mode 100644 dot_config/systemd/user/sway-session.target (limited to 'dot_config/systemd/user') 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 -- cgit v1.2.3