Update autobrightness.sh
Now it saves the path to the variable after detecting the correct path
This commit is contained in:
parent
07e9284ec4
commit
4a4db6e2be
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue