You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
826 B
826 B
Shows the current core temperature in a textbox.
Reads from /sys/class/thermal
, so value is expressed in Celsius.
mytemp = lain.widgets.temp()
input table
Variable | Meaning | Type | Default |
---|---|---|---|
timeout |
Refresh timeout seconds | int | 2 |
tempfile |
Path of file which stores core temperature value | string | "/sys/class/thermal/thermal_zone0/temp" |
settings |
User settings | function | empty function |
settings
can use the string coretemp_now
, which means current core temperature, expressed in Celsius (linux standard).
output
A textbox.
note
Depending on the architecture, keep in mind that your temp files location might change.