diff --git a/dots/bin/temperature.sh b/dots/bin/temperature.sh index 6828a6a..4afad77 100755 --- a/dots/bin/temperature.sh +++ b/dots/bin/temperature.sh @@ -11,9 +11,9 @@ # `/sys/devices/virtual/thermal/thermal_zone3/hwmon6/temp1_input` = `/sys/class/hwmon/hwmon6/temp1_input` threshold=$1 -temp_file=$1 +temp_file=$2 -threshold=${threshold:=60} +threshold=${threshold:=59} temp_file=${temp_file:=/sys/devices/virtual/thermal/thermal_zone3/hwmon6/temp1_input} # the value is reported in milli-degrees celsius. we divide by 1000 to convert to degrees celsius