1waybar-temperature(5)         File Formats Manual        waybar-temperature(5)
2
3
4

NAME

6       waybar - temperature module
7

DESCRIPTION

9       The temperature module displays the current temperature from a thermal
10       zone.
11

CONFIGURATION

13       Addressed by temperature
14
15       thermal-zone:
16            typeof: integer
17            The thermal zone, as in /sys/class/thermal/.
18
19       hwmon-path:
20            typeof: string
21            The temperature path to use, e.g. /sys/class/hwmon/hw‐
22       mon2/temp1_input instead of one in /sys/class/thermal/.
23           This can also be an array of strings. In this case, waybar will
24           check each item in the array and use the first valid one. This is
25           suitable if you want to share the same configuration file among
26           different machines with different hardware configurations.
27
28       hwmon-path-abs:
29            typeof: string
30            The path of the hwmon-directory of the device, e.g. /sys/de‐
31       vices/pci0000:00/0000:00:18.3/hwmon. (Note that the subdirectory hw‐
32       mon/hwmon#, where # is a number is not part of the path!) Has to be
33       used together with input-filename.
34
35       input-filename:
36            typeof: string
37            The temperature filename of your hwmon-path-abs, e.g. temp1_input
38
39       critical-threshold:
40            typeof: integer
41            The threshold before it is considered critical (Celsius).
42
43       interval:
44            typeof: integer
45            default: 10
46            The interval in which the information gets polled.
47
48       format-critical:
49            typeof: string
50            The format to use when temperature is considered critical
51
52       format:
53            typeof: string
54            default: {temperatureC}°C
55            The format (Celsius/Fahrenheit/Kelvin) in which the temperature
56       should be displayed.
57
58       format-icons:
59            typeof: array
60            Based on the current temperature (Celsius) and critical-threshold
61       if available, the corresponding icon gets selected. The order is low to
62       high.
63
64       tooltip-format:
65            typeof: string
66            default: {temperatureC}°C
67            The format for the tooltip
68
69       rotate:
70            typeof: integer
71            Positive value to rotate the text label.
72
73       max-length:
74            typeof: integer
75            The maximum length in characters the module should display.
76
77       min-length:
78            typeof: integer
79            The minimum length in characters the module should take up.
80
81       align:
82            typeof: float
83            The alignment of the text, where 0 is left-aligned and 1 is right-
84       aligned. If the module is rotated, it will follow the flow of the text.
85
86       on-click:
87            typeof: string
88            Command to execute when you clicked on the module.
89
90       on-click-middle:
91            typeof: string
92            Command to execute when middle-clicked on the module using mouse‐
93       wheel.
94
95       on-click-right:
96            typeof: string
97            Command to execute when you right clicked on the module.
98
99       on-update:
100            typeof: string
101            Command to execute when the module is updated.
102
103       on-scroll-up:
104            typeof: string
105            Command to execute when scrolling up on the module.
106
107       on-scroll-down:
108            typeof: string
109            Command to execute when scrolling down on the module.
110
111       smooth-scrolling-threshold:
112            typeof: double
113            Threshold to be used when scrolling.
114
115       tooltip:
116            typeof: bool
117            default: true
118            Option to disable tooltip on hover.
119

FORMAT REPLACEMENTS

121       {temperatureC}: Temperature in Celsius.
122
123       {temperatureF}: Temperature in Fahrenheit.
124
125       {temperatureK}: Temperature in Kelvin.
126

EXAMPLES

128            "temperature": {
129                // "thermal-zone": 2,
130                // "hwmon-path": ["/sys/class/hwmon/hwmon2/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
131                // "critical-threshold": 80,
132                // "format-critical": "{temperatureC}°C ",
133                "format": "{temperatureC}°C "
134           }
135

STYLE

137#temperature
138#temperature.critical
139
140
141
142                                  2023-08-16             waybar-temperature(5)
Impressum