cc9251d5c3
display_dispatch tried to flush the display in a loop until it no longer returns an error that is EAGAIN or EPIPE. This becomes an infinite loop if the socket is closed. Stop flushing if we hit EPIPE, as the connection is dead. We still try to read what we were sent to the protocol error shows up in debug output. |
||
---|---|---|
.builds | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
README.md | ||
color_math.c | ||
color_math.h | ||
main.c | ||
meson.build | ||
meson_options.txt | ||
str_vec.c | ||
str_vec.h | ||
wlr-gamma-control-unstable-v1.xml | ||
wlsunset.1.scd | ||
xdg-output-unstable-v1.xml |
README.md
wlsunset
Day/night gamma adjustments for Wayland compositors supporting wlr-gamma-control-unstable-v1
& xdg-output-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 @ irc.libera.chat to discuss, or use ~kennylevinsen/wlsunset-devel@lists.sr.ht