Skip to main content
otter-nightlight applies a warm gamma table through wlr-gamma-control-unstable-v1. That works on Hyprland, Sway, and other wlroots compositors. One binary: no arguments starts the daemon. Any other argument is a client command. Only one client can own gamma per output. Stop wlsunset or hyprsunset while this runs.

Usage

Start the daemon (autostart at login):
Add it to compositor autostart. On Niri: spawn-at-startup "otter-nightlight". On Hyprland, use exec-once. See Session setup for the same pattern. Client commands:
A start later than end wraps midnight.

Bar widget

Add nightlight to an otter-bar layout. Left-click enables or disables. Right-click opens temperature presets, the schedule window, and a one-hour suspend. The widget is a client. It does nothing if the daemon is not running.

Configuration

Config: ~/.config/otter-shell/otter-nightlight.conf
The Night Light tab in otter-settings writes the same file.
Times are local 24-hour clock.

Dependencies

  • Wayland compositor with wlr-gamma-control-unstable-v1