sway: use ExecStartPre in systemd service, like upstream wiki

This commit is contained in:
teutat3s 2022-06-02 10:45:03 +02:00
parent daeff7cdae
commit 7f712ce866
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -9,10 +9,10 @@ pkgs:
};
Service = {
Type = "simple";
ExecStartPre = "${pkgs.systemd}/bin/systemctl --user unset-environment WAYLAND_DISPLAY DISPLAY";
ExecStart = "${pkgs.sway}/bin/sway";
Restart = "on-failure";
RestartSec = "1";
TimeoutStopSec = "10";
ExecStopPost = "${pkgs.systemd}/bin/systemctl --user unset-environment SWAYSOCK DISPLAY I3SOCK WAYLAND_DISPLAY";
};
}