fix: signal waybar after wlsunset starts to update nightlight icon

Waybar starts before wlsunset (due to ExecStartPre sleep) and only
checks the service status once. ExecStartPost sends SIGRTMIN+11 so
waybar refreshes the nightlight module after wlsunset is ready.
This commit is contained in:
nevaforget 2026-04-16 10:36:05 +02:00
parent fcac91b540
commit ee85b87d3a

View File

@ -12,6 +12,7 @@ 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
ExecStartPost=/usr/bin/pkill -RTMIN+11 waybar
Restart=on-failure
RestartSec=3