1waybar-temperature(5) File Formats Manual waybar-temperature(5)
2
3
4
6 waybar - temperature module
7
9 The temperature module displays the current temperature from a thermal
10 zone.
11
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.
22 /sys/class/hwmon/hwmon2/temp1_input instead of one in /sys/class/ther‐
23 mal/.
24
25 hwmon-path-abs:
26 typeof: string
27 The path of the hwmon-directory of the device, e.g.
28 /sys/devices/pci0000:00/0000:00:18.3/hwmon. (Note that the subdirectory
29 hwmon/hwmon#, where # is a number is not part of the path!) Has to be
30 used together with input-filename.
31
32 input-filename:
33 typeof: string
34 The temperature filename of your hwmon-path-abs, e.g. temp1_input
35
36 critical-threshold:
37 typeof: integer
38 The threshold before it is considered critical (Celsius).
39
40 interval:
41 typeof: integer
42 default: 10
43 The interval in which the information gets polled.
44
45 format-critical:
46 typeof: string
47 The format to use when temperature is considered critical
48
49 format:
50 typeof: string
51 default: {temperatureC}°C
52 The format (Celsius/Fahrenheit) in which the temperature should be
53 displayed.
54
55 format-icons:
56 typeof: array
57 Based on the current temperature (Celsius) and critical-threshold
58 if available, the corresponding icon gets selected. The order is low to
59 high.
60
61 rotate:
62 typeof: integer
63 Positive value to rotate the text label.
64
65 max-length:
66 typeof: integer
67 The maximum length in characters the module should display.
68
69 on-click:
70 typeof: string
71 Command to execute when you clicked on the module.
72
73 on-click-middle:
74 typeof: string
75 Command to execute when middle-clicked on the module using mouse‐
76 wheel.
77
78 on-click-right:
79 typeof: string
80 Command to execute when you right clicked on the module.
81
82 on-scroll-up:
83 typeof: string
84 Command to execute when scrolling up on the module.
85
86 on-scroll-down:
87 typeof: string
88 Command to execute when scrolling down on the module.
89
90 smooth-scrolling-threshold:
91 typeof: double
92 Threshold to be used when scrolling.
93
94 tooltip:
95 typeof: bool
96 default: true
97 Option to disable tooltip on hover.
98
100 {temperatureC}: Temperature in Celsius.
101
102 {temperatureF}: Temperature in Fahrenheit.
103
105 "temperature": {
106 // "thermal-zone": 2,
107 // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
108 // "critical-threshold": 80,
109 // "format-critical": "{temperatureC}°C ",
110 "format": "{temperatureC}°C "
111 }
112
114 · #temperature
115 · #temperature.critical
116
117
118
119 2020-04-11 waybar-temperature(5)