Repository navigation
Integrations
Bind these commands using your desktop or compositor's shortcut configuration:
backlightctl -b +5%
backlightctl -b -5%
backlightctl --autoThe commands use the configured socket and calibration. A brightness adjustment
selects manual mode; auto resumes after the configured timeout unless set to
"forever". Use --refresh before a relative command if you need to reread an
external brightness change first, accepting the cost of discovery.
Waybar can consume JSON directly; an optional jq transformation avoids a custom
wrapper script. This example requires Waybar's custom module support and jq:
Add custom/backlight to the desired module list. The ten-second interval updates
the display while auto mode changes brightness. These queries read daemon state;
they do not trigger hardware reads or full discovery. The current CLI does not
provide a streaming status subscription. Waybar configuration/reload belongs to
your desktop session, independently of the daemon configuration.
backlightctl --json
backlightctl --devices --jsonCheck exit status and stderr. A failed command can have succeeded on some screens; retrying a relative command blindly may adjust those screens again. Prefer an absolute target when implementing script-level retries. The daemon already makes bounded recovery attempts for failed writes.
The regular JSON shape is suitable for a group indicator; the device array is better for diagnostics or displays that need to distinguish monitor settings.