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,13 +123,14 @@ in {
on-click-right = "powersave toggle"; on-click-right = "powersave toggle";
}; };
temperature = { temperature = {
format = "{temperatureC}°C"; critical-threshold = 80;
hwmon-path-abs = "${config.setting.cpu.hwmon.path}"; format = "{temperatureC}°C";
input-filename = "${config.setting.cpu.hwmon.file}"; hwmon-path-abs = "${config.setting.cpu.hwmon.path}";
interval = refreshInterval; input-filename = "${config.setting.cpu.hwmon.file}";
on-click = "foot -e bash -c btop"; interval = refreshInterval;
on-click-right = "powersave toggle"; on-click = "foot -e bash -c btop";
tooltip = false; on-click-right = "powersave toggle";
tooltip = false;
}; };
"custom/powersave" = { "custom/powersave" = {
exec = "powersave waybar"; exec = "powersave waybar";

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};