Add cli option to select device to control (#6)

Co-authored-by: crapStone <crapstone01@gmail.com>
Reviewed-on: https://codeberg.org/crapStone/lamp/pulls/6
This commit is contained in:
crapStone 2022-07-16 14:37:12 +02:00
parent 6f84078759
commit 620ba2bbe8
3 changed files with 31 additions and 9 deletions

View file

@ -9,12 +9,13 @@ In contrast to acpilight lamp is not backwards compatible with xbacklight.
It is intended to be used as a standalone replacement for new scripts.
```none
-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 available brightness and led controllers
-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]