All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 4s
Move nightlight from niri spawn-at-startup to a systemd user service with After=kanshi.service to ensure all outputs are configured before wlsunset starts. Toggle now uses enable/disable --now for persistent state across reboots.
20 lines
578 B
Desktop File
20 lines
578 B
Desktop File
# ABOUTME: systemd user service for wlsunset night light (blue light filter).
|
|
# ABOUTME: Starts after kanshi to ensure all outputs are configured.
|
|
|
|
[Unit]
|
|
Description=Wlsunset night light (blue light filter)
|
|
Documentation=man:wlsunset(1)
|
|
PartOf=graphical-session.target
|
|
After=graphical-session.target kanshi.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
# Give kanshi time to configure all outputs before wlsunset captures them
|
|
ExecStartPre=/bin/sleep 2
|
|
ExecStart=/usr/bin/wlsunset -T 6500 -t 5000 -S 00:00 -s 00:01
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=graphical-session.target
|