601dfc87ff
FreeBSD has BSD extension timezone, which conflicts with XSI extension with the same name, according to time.h: char *timezone(int, int); /* XXX XSI conflict */ ... FreeBSD also has long tm_gmtoff member of struct tm, which is offset from UTC in seconds, according to time.h: struct tm { ... long tm_gmtoff; /* offset from UTC in seconds */ char *tm_zone; /* timezone abbreviation */ } which is the same as XSI extension timezone. Co-authored-by: Jan Beich <jbeich@FreeBSD.org> (downstream patch) Reviewed by: Kenny Levinsen <kl@kl.wtf> |
||
---|---|---|
.builds | ||
LICENSE | ||
README.md | ||
color_math.c | ||
color_math.h | ||
main.c | ||
meson.build | ||
meson_options.txt | ||
wlr-gamma-control-unstable-v1.xml | ||
wlsunset.1.scd |
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 @ irc.libera.chat to discuss, or use ~kennylevinsen/wlsunset-devel@lists.sr.ht