Go to file
Kenny Levinsen bcbca9e065 Use illuminant D for the majority of temperatures
D65, the natural whitepoint that wlsunset assumes, is defined on
illuminant D, which simulates daylight with atmospheric effects.
However, we used planckian locus for all values under 6500 K, which
meant that there was a significant jump in color - specifically, a
sudden reduction in green and blue - as we started reducing the color
temperature.

Instead, we purely use illuminant D down to 4000 K where it is well
defined. Below 4000 K, illuminant D starts unintentionally approaching
the planckian locus, before finally breaking completely at 2000 K. We
extend the boundary of illuminant D to 2500 K and perform a
sine-smoothed transition to planckian locus from 4000 K to 2500 K to
extend the range of wlsunset down to 1667 K, where planckian locus ends
and we finally give up.

The end-result is a smooth transition along all valid temperature
values, with no sudden jumps as we had before. However, we do end up
with slightly greener/bluer colors than earlier. We'll have to see how
that holds up.
2020-11-11 16:40:37 +01:00
.builds ci: Add FreeBSD to CI 2020-11-09 17:11:37 +01:00
LICENSE Add license 2020-09-12 20:56:26 +02:00
README.md readme: Add IRC and mailing list note 2020-09-20 03:54:16 +02:00
color_math.c Use illuminant D for the majority of temperatures 2020-11-11 16:40:37 +01:00
color_math.h Move longitude time correction out of calc_sun 2020-10-19 14:18:28 +02:00
main.c Option cleanup 2020-10-21 01:41:49 +02:00
meson.build meson: Disable implicit-fallthrough 2020-11-09 21:50:21 +01:00
meson_options.txt Add manpage 2020-10-27 10:10:09 +01:00
wlr-gamma-control-unstable-v1.xml Initial commit 2020-09-12 20:13:28 +02:00
wlsunset.1.scd man: Remove reference to missing features 2020-10-31 01:57:31 +01:00

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