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