Repository navigation
Night Light 1.2.0
The evening ramp now ends when it is dark instead of at one clock time, so it suits any latitude and season.
What changes
full_tint_byalso accepts a twilight:civil_dusk,nautical_duskorastronomical_dusk.- New
full_tint_latest(default21:00) caps a twilight target, and is used where that twilight never comes.nullremoves the cap. - New defaults:
ramp_anchorissunset,full_tint_byisastronomical_dusk.ramp_curve_powerstays at2.0, which keeps the start faint while it is still light. - Clock targets are read against the evening the schedule was built for. With a sunset past midnight, such as Reykjavik in June, 21:00 used to mean the next day and the ramp ran until morning; it now keeps the
min_ramp_minutesfloor. - The
hyprsunset.confheader prints the morning start and the real dawn separately. - The panel captions no longer say "dusk" for a start that may be sunset.
- Version bumped to 1.2.0.
Existing users
setup writes every key to config.json, so existing configs keep their values and their clock target. Only keys missing from the file take the new defaults. Night Light must be re-applied (nightlight apply) for a config edit to take effect, as before.
Tests
python3 tests/test_schedule.py and python3 tests/test_keyboard.py pass. New cases cover twilight targets, the cap, unreachable twilights, a sunset past midnight, validation and the header. The default schedule was also swept across 9 locations and 24 dates, including polar ones, with no overlapping or repeated steps.