waybar-temperature(5)
okay bestie, sit down, hydrate, and let me tell you about waybar-temperature(5) β it's a whole module from the File Formats Manual and it's genuinely so useful. let's get into it π
π NAME π
waybar β the temperature module. that's it, that's the girl. π‘οΈβ¨
π DESCRIPTION π
the temperature module displays the current temperature from a thermal zone. she reads your machine's temp and puts it on your bar. lowkey essential, no cap. π₯
π CONFIGURATION π
you reach this module by the name temperature. here's every knob she has:
thermal-zoneβ typeof: integer. the thermal zone, as in/sys/class/thermal/. that's the directory she pulls from. π‘οΈhwmon-pathβ typeof: string. the temperature path you wanna use, e.g./sys/class/hwmon/hwmon2/temp1_input, instead of one of the ones sitting in/sys/class/thermal/.- this can also be an array of strings. in that case, waybar checks each item in the array and uses the first valid one. obsessed, honestly β it's perfect if you wanna share the same configuration file between different machines that have different hardware configurations. π₯οΈπ
hwmon-path-absβ typeof: string. the path of the hwmon-directory of the device, e.g./sys/devices/pci0000:00/0000:00:18.3/hwmon. (note that the subdirectoryhwmon/hwmon#, where#is a number, is not part of the path!) this one has to be used together withinput-filename, they're a package deal bestie π«Ά- this can also be an array of strings, and for that, it just works like
hwmon-path.
- this can also be an array of strings, and for that, it just works like
input-filenameβ typeof: string. the temperature filename of yourhwmon-path-abs, e.g.temp1_input.warning-thresholdβ typeof: integer. the threshold before it is considered warning (Celsius).critical-thresholdβ typeof: integer. the threshold before it is considered critical (Celsius).intervalβ typeof: integer or float, default:10. the interval in which the information gets polled.format-warningβ typeof: string. the format to use when temperature is considered warning.format-criticalβ typeof: string. the format to use when temperature is considered critical.formatβ typeof: string, default:{temperatureC}Β°C. the format (Celsius/Fahrenheit/Kelvin) in which the temperature should be displayed.format-iconsβ typeof: array. based on the current temperature (Celsius) andcritical-thresholdif available, the corresponding icon gets selected. the order is low to high. β¬οΈtooltip-formatβ typeof: string, default:{temperatureC}Β°C. the format for the tooltip.rotateβ typeof: integer. positive value to rotate the text label (in 90 degree increments). spin her around πmax-lengthβ typeof: integer. the maximum length in characters the module should display.min-lengthβ typeof: integer. the minimum length in characters the module should accept.alignβ typeof: float. the alignment of the label within the module, where0is left-aligned and1is right-aligned. if the module is rotated, it will follow the flow of the text.justifyβ typeof: string. the alignment of the text within the module's label, allowing options'left','right', or'center'to define the positioning.on-clickβ typeof: string. command to execute when you click on the module.on-click-middleβ typeof: string. command to execute when middle-clicked on the module using mousewheel.on-click-rightβ typeof: string. command to execute when you right-click on the module.on-updateβ typeof: string. command to execute when the module is updated.on-scroll-upβ typeof: string. command to execute when scrolling up on the module.on-scroll-downβ typeof: string. command to execute when scrolling down on the module.smooth-scrolling-thresholdβ typeof: double. threshold to be used when scrolling.tooltipβ typeof: bool, default:true. option to disable tooltip on hover.menuβ typeof: string. action that popups the menu.menu-fileβ typeof: string. location of the menu descriptor file. there need to be an element of typeGtkMenuwith idmenu.menu-actionsβ typeof: array. the actions corresponding to the buttons of the menu.expandβ typeof: bool, default:false. enables this module to consume all left over space dynamically.
π₯ FORMAT REPLACEMENTS π₯
these are the lil tokens you drop into your formats, bestie:
{temperatureC}: temperature in Celsius.{temperatureF}: temperature in Fahrenheit.{temperatureK}: temperature in Kelvin.
β¨ EXAMPLES β¨
here's the vibe, copy-paste ready, character for character:
"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 "
}
π STYLE π
these are the CSS selectors she answers to, periodt:
#temperature#temperature.warning#temperature.critical
and that's the whole page, my love π¦ go forth and keep an eye on your temps, she can't hurt you if you're watching her. this one came from the File Formats Manual, dated 2026-02-08 β waybar-temperature(5), mwah, iconic, no notes πβ¨
π¦ where this page comes from
- ubuntu resolute: waybar 0.15.0-1 Β· MIT
- ubuntu stonking: waybar 0.15.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms