Go to file
Evgeniy Khramtsov 601dfc87ff main.c: define timezone to tm.tm_gmtoff on FreeBSD
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>
2021-11-29 08:14:26 +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: Update discuss section 2021-05-19 17:52:41 +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 main.c: define timezone to tm.tm_gmtoff on FreeBSD 2021-11-29 08:14:26 +01:00
meson.build meson: Copy seatd's scdoc handling 2021-04-30 20:03:43 +02: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 Add support for manual sunset/sunrise 2021-01-29 17:32:51 +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 @ irc.libera.chat to discuss, or use ~kennylevinsen/wlsunset-devel@lists.sr.ht