e14e8efcf3
The sun trajectory calculation previously emitted garbage if midnight sun or polar night phenomena was in effect. To fix this, the calculation is overhauled to report if the computation failed, and if so, which specific phenomena was the cause. Timing recalulation uses this information to change out of the normal state that uses the four sun position timings, into a static state where wlsunset simply waits a day at a time for a normal sun trajectory pattern to be restored. In this state, a fixedc high/low temperature is set as appropriate for the phenomena. A transition phase replicating the previous day's sunrise is used to smooth out entry into a midnight sun, which would otherwise cause a jarring instant-daylight setting. |
||
---|---|---|
.build.yml | ||
LICENSE | ||
README.md | ||
color_math.c | ||
color_math.h | ||
main.c | ||
meson.build | ||
wlr-gamma-control-unstable-v1.xml |
README.md
wlsunset
Day/night gamma adjustments for Wayland compositors supporting wlr-gamma-control-unstable-v1.
How to build and install
meson build
ninja -C build
sudo ninja -C build install
How to use
See the helptext (wlsunset -h
)
Example
# Beijing lat/long.
wlsunset -l 39.9 -L 116.3
Greater precision than one decimal place serves no purpose other than padding the command-line.
Help
Go to #kennylevinsen @ chat.freenode.net to discuss, or use ~kennylevinsen/public-inbox@lists.sr.ht