Warm your screens at night
Set a schedulePermalink to Set a schedule#
Tessera can warm your screens in the evening and restore daytime colors in the morning. It calculates sunrise and sunset locally, without a location service or network connection. Supply latitude then longitude; south and west are negative.
(config
nightlight: (nightlight location: '(37.983810 23.727539)
day: 6500 night: 3500
brightness: '(1.0 0.7)
transition: 1800))Temperatures are kelvin, from 1000 to 25000. Brightness multipliers range from 0.1 to 1.0 and change the color ramp, not the backlight setting. Transition is 0 through 43200 seconds, centered on the boundary: 1800 starts 15 minutes before it and ends 15 minutes after it.
For fixed local dusk and dawn, replace location with times: '("18:30" "07:00"). Choose one schedule. It follows local timezone and daylight saving time. outputs: '("DP-2" "eDP-1") limits participating connectors; otherwise all outputs participate. Omit nightlight or set it to false to disable the schedule.
Override it for this sessionPermalink to Override it for this session#
tessera nightlight
tessera nightlight on
tessera nightlight off
tessera nightlight autoThe first command reports applied per-output state. On uses your configured night value, off restores neutral 6500 K at full brightness, and auto resumes the schedule. On requires a configuration. Overrides last for the session; suspend or clock adjustments recalculate the schedule from the current time.
Read the resultPermalink to Read the result#
The bar reports on, off, external, unknown, or unavailable. Unknown means application hasn't been confirmed; unavailable means the output lacks gamma support or rejected the ramp. Headless outputs commonly lack gamma support. An external client such as gammastep takes priority until it releases the output. End that client before expecting Tessera's override to apply. Tessera restores neutral ramps on clean exit where no external client owns them. See bar configuration for the nightlight section.