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
+1 -1
View File
@@ -178,7 +178,7 @@ section "User Services"
if [[ $EUID -eq 0 ]]; then
warn "Running as root — skipping user service checks"
else
for svc in kanshi stasis cliphist-text cliphist-image; do
for svc in kanshi wlsunset stasis cliphist-text cliphist-image; do
check_user_service "$svc"
done
fi
+1
View File
@@ -124,6 +124,7 @@ fi
log "Enabling systemd user services..."
USER_SERVICES=(
"kanshi"
"wlsunset"
"stasis"
"cliphist-text"
"cliphist-image"
+1
View File
@@ -345,6 +345,7 @@ echo "source /etc/zsh/zshrc.moonarch" >> "$HOME/.zshrc"
log "Enabling systemd user services..."
USER_SERVICES=(
"kanshi"
"wlsunset"
"stasis"
"cliphist-text"
"cliphist-image"