Waybar : Add a warning for temperature.

This commit is contained in:
Dmitry Voronin 2024-09-06 10:15:57 +03:00
parent 790ee978e3
commit e6feba79ea
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 9 additions and 7 deletions

View file

@ -123,6 +123,7 @@ in {
on-click-right = "powersave toggle"; on-click-right = "powersave toggle";
}; };
temperature = { temperature = {
critical-threshold = 80;
format = "{temperatureC}°C"; format = "{temperatureC}°C";
hwmon-path-abs = "${config.setting.cpu.hwmon.path}"; hwmon-path-abs = "${config.setting.cpu.hwmon.path}";
input-filename = "${config.setting.cpu.hwmon.file}"; input-filename = "${config.setting.cpu.hwmon.file}";

View file

@ -64,6 +64,7 @@ in {
#pulseaudio.muted, #pulseaudio.muted,
#pulseaudio.source-muted, #pulseaudio.source-muted,
#battery.critical, #battery.critical,
#temperature.critical,
#tray.needs-attention, #tray.needs-attention,
#custom-display.modified { #custom-display.modified {
border-top: ${toString config.style.window.border}px solid #${config.style.color.accent}; border-top: ${toString config.style.window.border}px solid #${config.style.color.accent};