From 9a88d26b7d667c38aef13dbf61531f4055653d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20R=C3=B8dseth?= Date: Thu, 28 Mar 2019 14:22:58 +0000 Subject: [PATCH] Add systemd --user files --- sway-session.target | 8 ++++++++ sway.service | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 sway-session.target create mode 100644 sway.service diff --git a/sway-session.target b/sway-session.target new file mode 100644 index 0000000..20cc519 --- /dev/null +++ b/sway-session.target @@ -0,0 +1,8 @@ +# https://github.com/swaywm/sway/wiki/Systemd-integration + +[Unit] +Description=sway compositor session +Documentation=man:systemd.special(7) +BindsTo=graphical-session.target +Wants=graphical-session-pre.target +After=graphical-session-pre.target diff --git a/sway.service b/sway.service new file mode 100644 index 0000000..c53c9db --- /dev/null +++ b/sway.service @@ -0,0 +1,16 @@ +# https://github.com/swaywm/sway/wiki/Systemd-integration + +[Unit] +Description=sway - SirCmpwn's Wayland window manager +Documentation=man:sway(5) +BindsTo=graphical-session.target +Wants=graphical-session-pre.target +After=graphical-session-pre.target + +[Service] +Type=simple +EnvironmentFile=-%h/.config/sway/env +ExecStart=/usr/bin/sway +Restart=on-failure +RestartSec=1 +TimeoutStopSec=10