Module i3status_rs::blocks::temperature
source · Expand description
The system temperature
This block displays the system temperature, based on libsensors
library.
This block has two modes: “collapsed”, which uses only color as an indicator, and “expanded”,
which shows the content of a format
string. The average, minimum, and maximum temperatures
are computed using all sensors displayed by sensors
, or optionally filtered by chip
and
inputs
.
Requires libsensors
and appropriate kernel modules for your hardware.
Run sensors
command to list available chips and inputs.
Note that the colour of the block is always determined by the maximum temperature across all sensors, not the average. You may need to keep this in mind if you have a misbehaving sensor.
§Configuration
Key | Values | Default |
---|---|---|
format | A string to customise the output of this block. See below for available placeholders | " $icon $average avg, $max max " |
format_alt | If set, block will switch between format and format_alt on every click | None |
interval | Update interval in seconds | 5 |
scale | Either "celsius" or "fahrenheit" | "celsius" |
good | Maximum temperature to set state to good | 20 °C (68 °F) |
idle | Maximum temperature to set state to idle | 45 °C (113 °F) |
info | Maximum temperature to set state to info | 60 °C (140 °F) |
warning | Maximum temperature to set state to warning. Beyond this temperature, state is set to critical | 80 °C (176 °F) |
chip | Narrows the results to a given chip name. * may be used as a wildcard. | None |
inputs | Narrows the results to individual inputs reported by each chip. | None |
Action | Description | Default button |
---|---|---|
toggle_format | Toggles between format and format_alt | Left |
Placeholder | Value | Type | Unit |
---|---|---|---|
min | Minimum temperature among all inputs | Number | Degrees |
average | Average temperature among all inputs | Number | Degrees |
max | Maximum temperature among all inputs | Number | Degrees |
Note that when block is collapsed, no placeholders are provided.
§Example
[[block]]
block = "temperature"
format = " $icon $max max "
format_alt = " $icon $min min, $max max, $average avg "
interval = 10
chip = "*-isa-*"
§Icons Used
thermometer