wlsunset: require WAYLAND_DISPLAY env var

This commit is contained in:
Robin Stumm 2026-05-02 22:20:11 +02:00 committed by Austin Horstman
parent a53beb6353
commit 561bd67464
2 changed files with 2 additions and 0 deletions

View file

@ -131,6 +131,7 @@ in
Description = "Day/night gamma adjustments for Wayland compositors.";
After = [ cfg.systemdTarget ];
PartOf = [ cfg.systemdTarget ];
ConditionEnvironment = "WAYLAND_DISPLAY";
};
Service = {

View file

@ -6,5 +6,6 @@ ExecStart=@wlsunset@/bin/wlsunset -L128.8 -T6000 -g0.6 -l12.3 -t3500
[Unit]
After=test.target
ConditionEnvironment=WAYLAND_DISPLAY
Description=Day/night gamma adjustments for Wayland compositors.
PartOf=test.target