You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
245 B
13 lines
245 B
#!/bin/sh
|
|
b=$(cat /sys/class/backlight/amdgpu_bl0/brightness)
|
|
|
|
a=0
|
|
|
|
if [ $b -gt 0 ]; then
|
|
while [ $a -lt 10 -a $b -gt 0 ]; do
|
|
b=`expr $b - 1`
|
|
echo $b | sudo tee /sys/class/backlight/amdgpu_bl0/brightness
|
|
a=`expr $a + 1`
|
|
done
|
|
fi
|
|
|