Go to file
Kenny Levinsen 5afa1d2819 Use timezone as time offset for manual time
When entering manual time, the timezone was adjusted in the time input
instead of storing the time offset. The time offset is necessary to
calculate the correct day boundaries.

Remove the timezone correction of time input and instead adjust the time
offset accordingly.
2022-05-04 11:01:10 +02:00
.builds ci: Add FreeBSD to CI 2020-11-09 17:11:37 +01: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 Use timezone as time offset for manual time 2022-05-04 11:01:10 +02: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