Overview
This crate provides definitions to get and set display brightness.
Linux and Windows are supported.
Example
use Brightness;
use TryStreamExt;
async
Linux
This crate interacts with devices found at /sys/class/backlight. This means that the
ddcci-backlight
kernel driver is required to control external displays (via DDC/CI).
Setting brightness is attempted using D-Bus and logind, which requires
systemd 243 or newer.
If this fails because the method is not available, the desired brightness is written to
/sys/class/backlight/$DEVICE/brightness, which requires permission (udev rules can help with
that).
Contribute
All contributions shall be licensed under the 0BSD license.