waybar: add cpu temperature widget

This commit is contained in:
Olexandr Smirnov 2025-07-08 15:07:58 +03:00
parent d547f3db83
commit c51774f030
No known key found for this signature in database
4 changed files with 10 additions and 5 deletions

View file

@ -10,7 +10,7 @@
"margin-right": 0,
"include": [
"~/.config/waybar/modules/hypr.json",
"~/.config/waybar/modules/info.json"
"~/.config/waybar/modules/info.jsonc"
],
"modules-left": ["hyprland/workspaces", "hyprland/window"],

View file

@ -8,6 +8,11 @@
"format": " {:%a, %d %b %H:%M}", // replace %I with %H for 24h format
},
"temperature": {
"hwmon-path": "/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.0/hwmon/hwmon3/temp1_input",
"format": " {temperatureC}°C"
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}%",

View file

@ -29,7 +29,7 @@ tooltip {
border: 1px solid @bg-darker-color;
}
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight {
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight, #temperature {
background-color: @bg-darker-color;
color: @fg-color;
border-radius: 16px;
@ -38,7 +38,7 @@ tooltip {
}
#network, #backlight { color: @blue; }
#cpu, #pulseaudio, #memory, #clock { color: @active-bg-color; }
#cpu, #pulseaudio, #memory, #clock, #temperature { color: @active-bg-color; }
#language { color: @red; }
#workspaces button { color: @active-bg-color; }