Go to file
Kenny Levinsen cc9251d5c3 display_dispatch: Terminate poll loop on EPIPE
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.
2023-01-23 14:59:20 +01:00
.builds ci: Build on archlinux 2022-05-04 11:09:55 +02:00
.editorconfig Add .editorconfig 2022-01-16 14:35:34 +01:00
.gitignore Add .gitignore 2022-01-24 13:36:50 +01:00
LICENSE Add license 2020-09-12 20:56:26 +02:00
README.md Support running only for specific outputs (displays) 2022-01-25 11:22:20 +01:00
color_math.c Move feature defines to C files 2022-05-04 10:58:42 +02:00
color_math.h Refactor RGB & XYZ colors into structs 2022-01-25 11:23:07 +01:00
main.c display_dispatch: Terminate poll loop on EPIPE 2023-01-23 14:59:20 +01:00
meson.build Move feature defines to C files 2022-05-04 10:58:42 +02:00
meson_options.txt Add manpage 2020-10-27 10:10:09 +01:00
str_vec.c Move feature defines to C files 2022-05-04 10:58:42 +02:00
str_vec.h Support running only for specific outputs (displays) 2022-01-25 11:22:20 +01:00
wlr-gamma-control-unstable-v1.xml Initial commit 2020-09-12 20:13:28 +02:00
wlsunset.1.scd Add support for manual sunset/sunrise 2021-01-29 17:32:51 +01:00
xdg-output-unstable-v1.xml Support running only for specific outputs (displays) 2022-01-25 11:22:20 +01:00

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