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

View file

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