etc/acpi: add

This commit is contained in:
Luc Bijl 2025-08-17 13:37:46 +02:00
parent 7a7fcebd29
commit 3f7c1b0c7c
5 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/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