README.md 873 Bytes
Newer Older
Nico Schottelius's avatar
Nico Schottelius committed
1
Miscellaneous scripts used by Nico Schottelius
Nico Schottelius's avatar
Nico Schottelius committed
2 3 4 5 6 7

## Notable things usable for others:

### cbacklight

Sets/controls backlight using /sys/class/backlight/*/brightness
8 9 10 11 12
directly. Usable for systems that use modesetting instead of intel
driver.

Also: supports multiple backlight outputs at the same time.

Nico Schottelius's avatar
Nico Schottelius committed
13
```
Nico Schottelius's avatar
Nico Schottelius committed
14 15
[14:12] line:~% cbacklight --help
usage: cbacklight [-h] [--inc INC | --dec DEC | --set SET] [--get]
16 17 18 19 20 21 22 23 24

cbacklight

optional arguments:
  -h, --help  show this help message and exit
  --inc INC   Increment by percentage (points)
  --dec DEC   Decrement by percentage (points)
  --set SET   Set to percentage
  --get       Get percentage (default)
Nico Schottelius's avatar
Nico Schottelius committed
25 26
[14:12] line:~% cbacklight --inc 5
[14:12] line:~% cbacklight --get
27
intel_backlight: 72.17%
Nico Schottelius's avatar
Nico Schottelius committed
28
[14:13] line:~% cbacklight --dec 7 --get
Nico Schottelius's avatar
Nico Schottelius committed
29 30 31 32
intel_backlight: 65.19%
```

It is basically a smarter / lighter xbacklight replacement