Skip to content

Module: Temperature

Alex edited this page Jun 14, 2019 · 17 revisions

The temperature module displays the current temperature from a thermal zone.

Config

Addressed by temperature

option typeof default description
thermal-zone integer The thermal zone, as in /sys/class/thermal/.
hwmon-path string The temperature path to use, e.g. /sys/class/hwmon/hwmon2/temp1_input instead of one in /sys/class/thermal/.
critical-threshold integer The threshold before it is considered critical (Celcius).
interval integer 10 The interval in which the information gets polled.
format-critical string The format to use when temperature is considered critical
format string {temperatureC}°C The format (Celcius/Farenheit) in which the temperature should be displayed.
format-icons array Based on the current temperature (Celcius) and critical-threshold if available, the corresponding icon gets selected.
The order is low to high.
rotate integer Positive value to rotate the text label.
max-length integer The maximum length in characters the module should display.
on-click string Command to execute when you clicked on the module.
on-click-right string Command to execute when you right clicked on the module.
on-scroll-up string Command to execute when scrolling up on the module.
on-scroll-down string Command to execute when scrolling down on the module.
smooth-scrolling-threshold double Threshold to be used when scrolling.
tooltip bool true Option to disable tooltip on hover.

Format replacements:

string replacement
{temperatureC} Temperature in Celcius.
{temperatureF} Temperature in Fahrenheit.

Example:

 "temperature": {
	// "thermal-zone": 2,
	// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
	// "critical-threshold": 80,
	// "format-critical": "{temperatureC}°C ",
	"format": "{temperatureC}°C "
}

Style

  • #temperature
  • #temperature.critical
Clone this wiki locally