Otter-shell · #32

otter-nightlight

ClosedFeatureMedium2 votes2 commentsby Cosmo

Add a button to activate nightlight and put options to control time based toggle, temperature, and temporary suspension of night light.

Discussion

Ferreo

should be a bar widget with a toggle when clicked and menu when right clicked with those things in - can also make it a standalone daemon and put those options in otter-settings

Ferreo

Shipped Night Light.

  • New daemon otter-nightlight owns exclusive zwlr_gamma_control_v1 (stop wlsunset/hyprsunset alongside).
  • Left-click bar widget toggles; right-click menu: 3000-5000 K, schedule on/off, 20:00-06:00 / 21:00-07:00 / 22:00-06:00, 1h suspend / clear.
  • Settings tab otter-nightlight.conf (enable, schedule, Kelvin, start/end hours).
  • State file $XDG_RUNTIME_DIR/otter-shell/nightlight-state; bar watches it with DND dir watch.

Pushed: otter-tools-core d437479, otter-wayland b5aeed5, otter-config-types a0d1810, otter-utils 365b697, otter-ui d946b66, otter-bar 687285a, otter-settings 642f8c6, otter-nightlight 1dd46c9.

Start daemon with the session (spawn-at-startup "otter-nightlight"). Default bar layout now includes nightlight after dnd (existing user configs unchanged until normalize).

Sign in with Discord to comment.