mirror of
https://github.com/Alexays/Waybar.git
synced 2026-06-10 07:51:39 +00:00
Page:
Module: Temperature
Pages
Abrar's Waybar
Add a custom plugin.
Anik's waybar config (super waybar)
Ariacna Æsama
Arkboi
Chocolate & Cream
Configuration
Dynamic wallust powered waybar
ERS’ waybar
Examples
FAQ
Home
Installation
JohanChane's waybar
Module: Backlight Slider
Module: Backlight
Module: Battery
Module: Bluetooth
Module: CFFI
Module: CPU
Module: Cava
Module: Cava: GLSL
Module: Cava: Raw
Module: Clock
Module: Custom
Module: Custom: Examples
Module: Custom: Menu
Module: Disk
Module: Dwl
Module: Gamemode
Module: Group
Module: Hyprland
Module: Idle Inhibitor
Module: Image
Module: JACK
Module: Keyboard State
Module: Language
Module: Load
Module: MPD
Module: MPRIS
Module: Memory
Module: Network
Module: Niri
Module: PowerProfilesDaemon
Module: Privacy
Module: PulseAudio Slider
Module: PulseAudio
Module: River
Module: Sndio
Module: Sway
Module: Systemd failed units
Module: Taskbar
Module: Temperature
Module: Tray
Module: UPower
Module: User
Module: Wayfire
Module: WirePlumber
Module: Workspaces
Modules
Simple and Attractive
States
Styling
That's all bitches
Themes
Thos' config based on pywal
Tray Applets
Writing Modules
apachaiz's waybar
d00m1k's configuration
lingllqs's simple dark style configuration
mechabar
mudi4's waybar
new waylyrics
nitrobigchill's waybar
rdk‐codes configuration
waybar config
No results
20
Module: Temperature
Mehraz Ahmed edited this page 2025-11-16 23:21:20 -05:00
Table of Contents
The temperature module displays the current temperature from a thermal zone.
Config
Addressed by temperature
| option | typeof | default | description |
|---|---|---|---|
thermal-zone |
integer | The thermal zone, as in /sys/class/thermal/. |
|
hwmon-path |
string/array | The temperature path to use, e.g. /sys/class/hwmon/hwmon2/temp1_input instead of one in /sys/class/thermal/. |
|
hwmon-path-abs |
string/array | The path of the hwmon-directory of the device, e.g. /sys/devices/pci0000:00/0000:00:18.3/hwmon. (Note that the subdirectory hwmon/hwmon#, where # is a number, is not part of the path!) Has to be used together with input-filename. |
|
input-filename |
string | The temperature filename of your hwmon-path-abs, e.g. temp1_input |
|
warning-threshold |
integer | The threshold before it is considered warning (Celsius). | |
critical-threshold |
integer | The threshold before it is considered critical (Celsius). | |
interval |
integer | 10 | The interval in which the information gets polled. |
format-critical |
string | The format to use when temperature is considered critical | |
format |
string | {temperatureC}°C |
The format (Celsius/Farenheit) in which the temperature should be displayed. |
format-icons |
array | Based on the current temperature (Celsius) and critical-threshold if available, the corresponding icon gets selected.The order is low to high. |
|
rotate |
integer | Positive value to rotate the text label. | |
max-length |
integer | The maximum length in characters the module should display. | |
on-click |
string | Command to execute when you clicked on the module. | |
on-click-middle |
string | Command to execute when you middle clicked on the module using mousewheel. | |
on-click-right |
string | Command to execute when you right clicked on the module. | |
on-scroll-up |
string | Command to execute when scrolling up on the module. | |
on-scroll-down |
string | Command to execute when scrolling down on the module. | |
smooth-scrolling-threshold |
double | Threshold to be used when scrolling. | |
tooltip |
bool | true |
Option to enable tooltip on hover. |
tooltip-format |
string | {temperatureC}°C |
The format for the tooltip |
Format replacements:
| string | replacement |
|---|---|
{temperatureC} |
Temperature in Celsius. |
{temperatureF} |
Temperature in Fahrenheit. |
{temperatureK} |
Temperature in Kelvin. |
{icon} |
Icon, as defined in format-icons. |
Example:
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
// "critical-threshold": 80,
// "format-critical": "{temperatureC}°C ",
"format": "{temperatureC}°C "
}
Style
#temperature#temperature.warning#temperature.critical
Debugging
Finding your thermal zone
To list all the zone types, run
for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
Finding hwmon path
If you don't have a thermal zone, another option is to use sensors to find preferred temperature source, then run
for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
to find path to desired file. Then include it in hwmon-path variable.
- Home
- Installation
- Configuration
- Styling
- Examples
- FAQ
- Modules:
- Backlight/Slider
- Backlight
- Battery
- Bluetooth
- CPU
- Cava
- CFFI
- Clock
- Custom
- DWL
- Disk
- Gamemode
- Group
- Hyprland
- Idle Inhibitor
- Image
- JACK
- Keyboard State
- Language
- Load
- MPD
- MPRIS
- Memory
- Network
- Niri
- Power Profiles Daemon
- Privacy
- PulseAudio/Slider
- PulseAudio
- River
- Sndio
- Sway
- Systemd failed units
- Taskbar
- Temperature
- Tray
- UPower
- User
- Wayfire
- WirePlumber
- Workspaces
- Writing Modules
License
Waybar is licensed under the MIT license. See LICENSE for more information.