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.
10 lines
377 B
Bash
Executable File
10 lines
377 B
Bash
Executable File
#!/bin/bash
|
|
# ABOUTME: Outputs JSON status for waybar nightlight module.
|
|
# ABOUTME: Checks wlsunset systemd service, shows warm icon when active.
|
|
|
|
if systemctl --user is-active --quiet wlsunset; then
|
|
jq -nc '{text: "", alt: "on", tooltip: "Nightlight: An (5000K)", class: "on"}'
|
|
else
|
|
jq -nc '{text: "", alt: "off", tooltip: "Nightlight: Aus", class: "off"}'
|
|
fi
|