| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A minimal backlight control daemon for Linux.
Using blctl is simple thanks to its easy-to-use command-line interface.
To list all commands and their options, run blctl --help and blctl [COMMAND] --help in your terminal.
By default, most commands take as input and print as a result to stdout a value between 0-100 inclusive. If an error is encountered, blctl will print the error to stderr and exit with a non-zero exit code.
The function to map arbitrary backlight brightness levels to a 0-100 inclusive range is lossy in precision. If losslessness is required, use the --from-raw and --to-raw flags to specify brightness and print results in the arbitrary brightness range defined by your backlight device driver rather than the more portable but lossy mapped range.
While only a NixOS flake is provided, blctl should in theory work on any Linux distribution with Sysfs support. For distributions other than NixOS, manual packaging is required. Systemd and Runit service configurations can be found in the ./service-configs/ directory of this repository.
After adding this repository as a flake, blctl can be installed either by specifying the package in your directly, or by using the module provided by the flake.
Internally, blctl is written only in safe Rust with no reliance on any non-Rust dependencies. It uses Sysfs to communicate with the backlight device driver using simple file reads and writes, and uses a Unix domain socket for inter-process communication between the command-line interface (blctl) and the daemon (blctld).
Licensed under either of
at your option.
| Back | FazBrowse Home | New Git URL |