Skip to content

Hyprsunset Dimming

The laptop host has a gamma-only dimming layer built around hyprsunset. It is separate from normal panel brightness and does not enable a warm night-light profile by default.

Use it when the display is still too bright at low hardware brightness, especially in a dark room.

The dimming key bindings are in the laptop host override:

~/.config/hypr/host/bindings.conf

The public source is:

~/.config/dotfiles/hypr/.config/hypr/hosts/laptop/bindings.conf

The shared and desktop hyprsunset.conf keep an identity profile so hyprsunset does nothing to the screen unless a helper changes gamma.

BindingAction
SUPER+CTRL+DToggle dim mode.
SUPER+CTRL+-Dim down.
SUPER+CTRL+=Dim up.
CTRL+BrightnessDownDim down.
CTRL+BrightnessUpDim up.
BrightnessDownClear dimming, then lower hardware brightness.
BrightnessUpClear dimming, then raise hardware brightness.

Normal brightness keys clear dim mode first so a screen is not accidentally left gamma-dimmed after increasing hardware brightness.

The helper scripts keep state under:

~/.config/hypr/.state/
FileMeaning
hyprsunset-dim-enabledPresent when dim mode is active.
hyprsunset-dim-levelLast gamma level written by the helper.

The default toggle level is 50. Dim steps move by 5, clamped between 5 and 100.

Toggle dim mode:

Terminal window
~/.config/hypr/bin/hyprsunset-toggle-dim

Dim down or up:

Terminal window
~/.config/hypr/bin/hyprsunset-dim-step down
~/.config/hypr/bin/hyprsunset-dim-step up

Clear dim mode:

Terminal window
~/.config/hypr/bin/hyprsunset-clear-dim

Each helper starts hyprsunset with the active host config if it is not already running.

Terminal window
pgrep -x hyprsunset
hyprctl hyprsunset gamma
ls ~/.config/hypr/.state

If hyprctl hyprsunset gamma reports 100, dim mode is effectively off.

If the keys do nothing, confirm the active host is laptop and the host symlink points at the laptop overrides. See Host Overrides.

If dim mode gets stuck, clear it explicitly:

Terminal window
~/.config/hypr/bin/hyprsunset-clear-dim

If hyprsunset is not running after login, check the laptop autostart override. It starts:

uwsm app -- hyprsunset --config ~/.config/hypr/host/hyprsunset.conf

The laptop host config includes commented examples for temperature or scheduled gamma profiles, but they are not active. Keep them commented unless you want automatic colour or gamma changes in addition to the manual dim controls.