- t0 = gettemperature("/sys/devices/virtual/hwmon/hwmon1", "temp1_input");
- t1 = gettemperature("/sys/devices/platform/coretemp.0/hwmon/hwmon3", "temp1_input");
- t2 = gettemperature("/sys/devices/platform/coretemp.0/hwmon/hwmon3", "temp2_input");
- t3 = gettemperature("/sys/devices/platform/coretemp.0/hwmon/hwmon3", "temp3_input");
+ kbmap = execscript("setxkbmap -query | grep layout | cut -d':' -f 2- | tr -d ' '");
+ t0 = gettemperature("/sys/devices/virtual/thermal/thermal_zone0", "temp");
+ t1 = gettemperature("/sys/devices/virtual/thermal/thermal_zone1", "temp");