A linux backlight utility inspired by acpibacklight
Go to file
crapStone 150b6ff30b
ci/woodpecker/push/lamp Pipeline was successful Details
ci/woodpecker/tag/lamp Pipeline was successful Details
removed unnecessary unwraps, closes #4
2022-07-16 16:41:06 +02:00
.woodpecker add woodpecker config 2022-07-16 01:23:26 +02:00
src removed unnecessary unwraps, closes #4 2022-07-16 16:41:06 +02:00
.gitignore removed shell completions 2020-07-22 18:50:08 +02:00
90-backlight.rules initial commit 2020-07-22 18:47:26 +02:00
Cargo.lock removed unnecessary unwraps, closes #4 2022-07-16 16:41:06 +02:00
Cargo.toml removed unnecessary unwraps, closes #4 2022-07-16 16:41:06 +02:00
LICENSE change license to GPLv3 2022-07-15 23:55:31 +02:00
README.md add badges to README 2022-07-16 16:15:12 +02:00
build.rs prepare crates.io release 2022-07-16 02:41:30 +02:00



status-badge Crates.io

Lamp is a backlight control program written in Rust and inspired by acpibacklight.


In contrast to acpilight lamp is not backwards compatible with xbacklight. It is intended to be used as a standalone replacement for new scripts.

    -c, --controller <DEVICE>       Select device to control
    -d, --decrease <PERCENT>        Decreases brightness
    -f, --full                      Sets brightness to highest value
    -g, --get                       Prints current brightness value
    -h, --help                      Print help information
    -i, --increase <PERCENT>        Increases brightness
    -l, --list                      Lists all devices with controllable brightness and led values
    -s, --set <VALUE>               Sets brightness to given value
    -t, --type <controller_type>    choose controller type [default: lin] [possible values: raw,
                                    lin, log]
    -V, --version                   Print version information
    -z, --zero                      Sets brightness to lowest value


Binary packages for the following systems are currently available.

Packaging status

You can also install it via cargo:

cargo install lamp

You have to make sure, that you have write access to /sys/class/backlight/. This can be achieved by using udev rules like 90-backlight.rules in this repo.


lamp is a pure Rust project so you can simply run cargo build after installing the Rust toolchain.

Formatting is done via cargo fmt with the default rules and in the pipeline clippy is run with the following arguments:

cargo clippy -- --deny clippy::all --deny warnings