.\" Generated by scdoc 1.11.5 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "waybar\-temperature" "5" "2026\-08\-31" .PP .SH NAME .PP waybar \- temperature module .PP .SH DESCRIPTION .PP The \fBtemperature\fR module displays the current temperature from a thermal zone.\& .PP .SH CONFIGURATION .PP Addressed by \fBtemperature\fR .PP \fBthermal\-zone\fR: .br typeof: integer .br The thermal zone, as in \fB/sys/class/thermal/\fR.\& .PP \fBhwmon\-path\fR: .br typeof: string .br The temperature path to use, e.\&g.\& \fB/sys/class/hwmon/hwmon2/temp1_input\fR instead of one in \fB/sys/class/thermal/\fR.\& .RS 4 This can also be an array of strings.\& In this case, waybar will check each item in the array and use the first valid one.\& This is suitable if you want to share the same configuration file among different machines with different hardware configurations.\& .PP .RE \fBhwmon\-path\-abs\fR: .br typeof: string .br The path of the hwmon\-directory of the device, e.\&g.\& \fB/sys/devices/pci0000:00/0000:00:18.\&3/hwmon\fR.\& (Note that the subdirectory \fBhwmon/hwmon#\fR, where \fB#\fR is a number is not part of the path!\&) Has to be used together with \fBinput\-filename\fR.\& .RS 4 This can also be an array of strings, for which, it just works like \fBhwmon\-path\fR.\& .PP .RE \fBinput\-filename\fR: .br typeof: string .br The temperature filename of your \fBhwmon\-path\-abs\fR, e.\&g.\& \fBtemp1_input\fR .PP \fBwarning\-threshold\fR: .br typeof: integer .br The threshold before it is considered warning (Celsius).\& .PP \fBcritical\-threshold\fR: .br typeof: integer .br The threshold before it is considered critical (Celsius).\& .PP \fBinterval\fR: .br typeof: integer or float .br default: 10 .br The interval in which the information gets polled.\& .PP \fBformat\-warning\fR: .br typeof: string .br The format to use when temperature is considered warning .PP \fBformat\-critical\fR: .br typeof: string .br The format to use when temperature is considered critical .PP \fBformat\fR: .br typeof: string .br default: {temperatureC}°C .br The format (Celsius/Fahrenheit/Kelvin) in which the temperature should be displayed.\& .PP \fBformat\-icons\fR: .br typeof: array .br Based on the current temperature (Celsius) and \fBcritical\-threshold\fR if available, the corresponding icon gets selected.\& The order is \fBlow\fR to \fBhigh\fR.\& .PP \fBtooltip\-format\fR: .br typeof: string .br default: {temperatureC}°C .br The format for the tooltip .PP \fBrotate\fR: .br typeof: integer .br Positive value to rotate the text label (in 90 degree increments).\& .PP \fBmax\-length\fR: .br typeof: integer .br The maximum length in characters the module should display.\& .PP \fBmin\-length\fR: .br typeof: integer .br The minimum length in characters the module should accept.\& .PP \fBalign\fR: .br typeof: float .br The alignment of the label within the module, where 0 is left\-aligned and 1 is right\-aligned.\& If the module is rotated, it will follow the flow of the text.\& .PP \fBjustify\fR: .br typeof: string .br The alignment of the text within the module'\&s label, allowing options '\&left'\&, '\&right'\&, or '\¢er'\& to define the positioning.\& .PP \fBon\-click\fR: .br typeof: string .br Command to execute when you click on the module.\& .PP \fBon\-click\-middle\fR: .br typeof: string .br Command to execute when middle\-clicked on the module using mousewheel.\& .PP \fBon\-click\-right\fR: .br typeof: string .br Command to execute when you right\-click on the module.\& .PP \fBon\-update\fR: .br typeof: string .br Command to execute when the module is updated.\& .PP \fBon\-scroll\-up\fR: .br typeof: string .br Command to execute when scrolling up on the module.\& .PP \fBon\-scroll\-down\fR: .br typeof: string .br Command to execute when scrolling down on the module.\& .PP \fBsmooth\-scrolling\-threshold\fR: .br typeof: double .br Threshold to be used when scrolling.\& .PP \fBtooltip\fR: .br typeof: bool .br default: true .br Option to disable tooltip on hover.\& .PP \fBmenu\fR: .br typeof: string .br Action that popups the menu.\& .PP \fBmenu\-file\fR: .br typeof: string .br Location of the menu descriptor file.\& There need to be an element of type .RS 4 GtkMenu with id \fBmenu\fR .PP .RE \fBmenu\-actions\fR: .br typeof: array .br The actions corresponding to the buttons of the menu.\& .PP \fBexpand\fR: .br typeof: bool .br default: false .br Enables this module to consume all left over space dynamically.\& .PP .SH FORMAT REPLACEMENTS .PP \fB{temperatureC}\fR: Temperature in Celsius.\& .PP \fB{temperatureF}\fR: Temperature in Fahrenheit.\& .PP \fB{temperatureK}\fR: Temperature in Kelvin.\& .PP .SH EXAMPLES .PP .nf .RS 4 "temperature": { // "thermal\-zone": 2, // "hwmon\-path": ["/sys/class/hwmon/hwmon2/temp1_input", "/sys/class/thermal/thermal_zone0/temp"], // "critical\-threshold": 80, // "format\-critical": "{temperatureC}°C ", "format": "{temperatureC}°C " } .fi .RE .PP .SH STYLE .PP .PD 0 .IP \(bu 4 \fB#temperature\fR .IP \(bu 4 \fB#temperature.\&warning\fR .IP \(bu 4 \fB#temperature.\&critical\fR