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:
parent
fcac91b540
commit
ee85b87d3a
@ -12,6 +12,7 @@ Type=simple
|
|||||||
# Give kanshi time to configure all outputs before wlsunset captures them
|
# Give kanshi time to configure all outputs before wlsunset captures them
|
||||||
ExecStartPre=/bin/sleep 2
|
ExecStartPre=/bin/sleep 2
|
||||||
ExecStart=/usr/bin/wlsunset -T 6500 -t 5000 -S 00:00 -s 00:01
|
ExecStart=/usr/bin/wlsunset -T 6500 -t 5000 -S 00:00 -s 00:01
|
||||||
|
ExecStartPost=/usr/bin/pkill -RTMIN+11 waybar
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user