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.
12 lines
345 B
Bash
Executable File
12 lines
345 B
Bash
Executable File
#!/bin/bash
|
|
# ABOUTME: Toggles wlsunset night light on/off via systemd user service.
|
|
# ABOUTME: Persists state across reboots (enable/disable), signals waybar for refresh.
|
|
|
|
if systemctl --user is-active --quiet wlsunset; then
|
|
systemctl --user disable --now wlsunset
|
|
else
|
|
systemctl --user enable --now wlsunset
|
|
fi
|
|
|
|
pkill -RTMIN+11 waybar
|