Smooth Light Backlight and LED device control for Linux. Essentially a
reimplementation of brightnessctl & light, forked from spikespaz/slight.
TL;DR: Minimize the amount of scripting you have to do when integrating with other programs or services.
The most common utilities for backlight control on Linux, brightnessctl and
light, only perform very basic functions. They can increment or decrement
(or set) brightness levels of devices in /sys/class/backlight and
/sys/class/leds, and that's about it. They function great, and it is wonderful
how simple and straightforward they are, however if you want to do anything more
complicated you'll need to write wrappers in another language (usually shell
code) to take care of that.
Considering that actually using the sysfs ABIs for changing device brightness
is so simple, you may as well just do it with your own scripts. Slight
exists so that you don't have to reinvent the wheel anymore.
I'm going to explain this one later, maybe in a blog post. Though the reason I've elected to fork instead of writing something from scratch is that I've noticed I agree with @spikespaz on some of the reason Slight exists, and I would like to continue the project instead of starting from scratch just to reinvent the same wheels.
- Interpolate brightness adjustments over a duration of time
- Conditionally adjust brightness only if it is currently above or below the target.
- Direct integration with other programs (such as Gammastep or Redshift, with hooks).
- Control brightness external monitors with DDC/CI.
- Control multiple devices at the same time, so that one command affects multiple.
- Define custom percentage curves so that brightness does not adjust linearly, but rather according to your eye's perception.
- Brightness scheduling (e.g., time-based automatic adjustments)
- Device profiles for saving and restoring brightness settings
- Support for keyboard backlight control
- JSON output mode for scripting integration
- Plugin system for custom brightness curves and integrations
- Support for ambient light sensors for automatic adjustment
Slight is available under the MIT License following the original project. See the LICENSE file for more details.