feat: manage wlsunset via systemd user service
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.
This commit is contained in:
2026-04-14 17:42:24 +02:00
parent 9bc753e092
commit 0433f08f08
8 changed files with 34 additions and 13 deletions
@@ -0,0 +1,19 @@
# 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