8 lines
257 B
Bash
Executable file
8 lines
257 B
Bash
Executable file
#!/bin/sh
|
|
|
|
for backlight in /sys/class/backlight/*; do
|
|
[ -d $backlight ] || continue
|
|
step=$(( $(cat "$backlight/max_brightness") / 20))
|
|
[ $step -gt 1 ] || step=1
|
|
printf '%s' "$(( $(cat "$backlight/brightness") $1 $step))" > "$backlight/brightness"
|
|
done
|