Make wlsunset start *after* graphical-session

This commit is contained in:
Natsu Kagami 2025-01-19 22:21:19 +01:00
parent 381f54e0e1
commit a3ecb00160
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 3 additions and 0 deletions

View file

@ -107,6 +107,7 @@ with lib;
latitude = "46.31"; latitude = "46.31";
longitude = "6.38"; longitude = "6.38";
}; };
systemd.user.services.wlsunset.Unit.After = "graphical-session.target";
# Notification system # Notification system

View file

@ -86,6 +86,8 @@ in
Service.Slice = "session.slice"; Service.Slice = "session.slice";
Service.Type = "notify"; Service.Type = "notify";
Service.ExecStart = "${lib.getExe pkgs.xwayland-satellite} ${xwayland-display}"; Service.ExecStart = "${lib.getExe pkgs.xwayland-satellite} ${xwayland-display}";
Service.ExecStartPost = [ "systemctl --user set-environment DISPLAY=${xwayland-display}" ];
Service.ExecStopPre = [ "systemctl --user unset-environment" ];
}; };
programs.niri.settings = { programs.niri.settings = {