[arch-commits] Commit in sway/trunk (sway-session.target sway.service)

Alexander Rødseth arodseth at archlinux.org
Thu Mar 28 14:22:59 UTC 2019


    Date: Thursday, March 28, 2019 @ 14:22:58
  Author: arodseth
Revision: 445389

Add systemd --user files

Added:
  sway/trunk/sway-session.target
  sway/trunk/sway.service

---------------------+
 sway-session.target |    8 ++++++++
 sway.service        |   16 ++++++++++++++++
 2 files changed, 24 insertions(+)

Added: sway-session.target
===================================================================
--- sway-session.target	                        (rev 0)
+++ sway-session.target	2019-03-28 14:22:58 UTC (rev 445389)
@@ -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

Added: sway.service
===================================================================
--- sway.service	                        (rev 0)
+++ sway.service	2019-03-28 14:22:58 UTC (rev 445389)
@@ -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


More information about the arch-commits mailing list