Update autobrightness.sh

Now it saves the path to the variable after detecting the correct path
This commit is contained in:
Theluga 2023-12-21 18:11:08 +00:00 committed by GitHub
parent 07e9284ec4
commit 4a4db6e2be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ MonitorBrightness=/sys/class/backlight/intel_backlight/brightness
#my sensor keep changing places, this way it will always be found with * if you have lots of sensors #my sensor keep changing places, this way it will always be found with * if you have lots of sensors
AnbientSensorIlluminance=/sys/bus/iio/devices/iio:*/in_illuminance_raw AnbientSensorIlluminance=`echo realpath /sys/bus/iio/devices/iio:*/in_illuminance_raw`
while getopts i:d: flag; do while getopts i:d: flag; do