From 6000d5951b304e7bbe6fb0553c5a7e328c1c72cc Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 9 Sep 2025 17:19:13 +0200 Subject: [PATCH] chore(waybar): rework temperature handling --- modules/home-manager/desktop/sway/default.nix | 4 ++-- .../home-manager/desktop/sway/includes/files/waybar-style.css | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/desktop/sway/default.nix b/modules/home-manager/desktop/sway/default.nix index b3950e7..d8fa2ff 100644 --- a/modules/home-manager/desktop/sway/default.nix +++ b/modules/home-manager/desktop/sway/default.nix @@ -74,8 +74,8 @@ in cpuThermal = { thermalZone = mkOption { - type = types.str; - default = ""; + type = types.int or null; + default = null; description = "CPU thermal hwmon thermal Zone"; }; diff --git a/modules/home-manager/desktop/sway/includes/files/waybar-style.css b/modules/home-manager/desktop/sway/includes/files/waybar-style.css index f7cc59f..d1dd1a2 100644 --- a/modules/home-manager/desktop/sway/includes/files/waybar-style.css +++ b/modules/home-manager/desktop/sway/includes/files/waybar-style.css @@ -101,7 +101,8 @@ button:hover{ #battery.critical:not(.charging), #cpu.critical, -#memory.critical{ +#memory.critical, +#temperature.critical{ border-color: @color-critical; color: @color-critical; }