sway: use ExecStartPre in systemd service, like upstream wiki

This commit is contained in:
teutat3s 2022-06-02 10:45:03 +02:00
parent 972e0af361
commit 323a3bd189
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -8,10 +8,10 @@
};
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";
};
}