Skip to content

M_temperature

vbextreme edited this page Sep 6, 2018 · 1 revision

Temperature config wiki

Show temperature cpu

Module Specific Attribute

# if sensor value >= 0 select hwmon 
# /sys/class/hwmon/hwmon<sensor>
# if sensor < 0 use thermal
# /sys/class/thermal/thermal_zone
sensor = 0

# if sensor >=0 sensor.temp select temp_input
# /sys/class/hwmon/hwmon<sensor>/temp<sensor.temp>_input
# if sensor < 0 sensor.temp select thermal_zone
# /sys/class/thermal/thermal_zone<sensor.temp>/temp
sensor.temp = 1

# if sensor.critic value >= 0 select hwmon 
# /sys/class/hwmon/hwmon<sensor.critic>
# if sensor < 0 use thermal
# /sys/class/thermal/thermal_zone
sensor.critic = 0

# if sensor.critic >=0 sensor.critic.temp select temp_crit
# /sys/class/hwmon/hwmon<sensor.critic>/temp<sensor.critic.temp>_crit
# if sensor.critic < 0 sensor.temp select thermal_zone
# /sys/class/thermal/thermal_zone<sensor.critic.temp>/temp
sensor.critic.temp = 1

# blink when temperature >= blink.on
blink.on = 90

# unit display temp / unit
unit = 1000

Enviroment

$0 temperature
$1 critic temperature

Formatting

for formatting enviroment

# double
format[0] = 6.2
format[1] = 6.2

Icon

# display on discharging % of capacity
icon = "🌡"

Example

show current and max temperature

text.long = "$@ $0 $1"
Clone this wiki locally