From 4a4db6e2beae37bbdbc0228254726d664ae26d96 Mon Sep 17 00:00:00 2001 From: Theluga <96307393+Theluga@users.noreply.github.com> Date: Thu, 21 Dec 2023 18:11:08 +0000 Subject: [PATCH] Update autobrightness.sh Now it saves the path to the variable after detecting the correct path --- autobrightness.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autobrightness.sh b/autobrightness.sh index c3d2921..6248382 100644 --- a/autobrightness.sh +++ b/autobrightness.sh @@ -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 -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