als autodetection working
Now it will always use the first als found on the system. Auto detection if only 1 such device exists
This commit is contained in:
parent
4a4db6e2be
commit
0fb675b825
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=`echo realpath /sys/bus/iio/devices/iio:*/in_illuminance_raw`
|
AnbientSensorIlluminance=`echo "$(set -- $(realpath /sys/bus/iio/devices/iio:*/in_illuminance_raw); echo "$1")"`
|
||||||
|
|
||||||
|
|
||||||
while getopts i:d: flag; do
|
while getopts i:d: flag; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue