[][src]Module i3status_rs::blocks::backlight

A block for displaying the brightness of a backlit device.

This module contains the Backlight block, which can display the brightness level of physical backlit devices. Brightness levels are read from and written to the sysfs filesystem, so this block does not depend on xrandr (and thus it works on Wayland). To set brightness levels using xrandr, see the Xrandr block.

Structs

Backlight

A block for displaying the brightness of a backlit device.

BacklightConfig

Configuration for the Backlight block.

BacklitDevice

Represents a physical backlit device whose brightness level can be queried.

Functions

clamp_root_scaling

Clamp scale root to a safe range. Useful values are 1.0 to 3.0.

read_brightness

Read a brightness value from the given path.