From ea569d1a0279674863661c7f6694c0ba6fc5cb7d Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 27 Jan 2026 08:51:31 -0600 Subject: feat(waybar): add warning/critical color thresholds for temperature and disk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Temperature turns yellow at 70°C, red at 80°C using built-in waybar states. Disk replaced with custom script that turns yellow at 80% full, red at 90%, working across ZFS/btrfs/ext4. Colors themed per dupre/hudson. Co-Authored-By: Claude Opus 4.5 --- dotfiles/hyprland/.config/waybar/config | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dotfiles/hyprland/.config/waybar/config') diff --git a/dotfiles/hyprland/.config/waybar/config b/dotfiles/hyprland/.config/waybar/config index 5b9879e..fdff160 100644 --- a/dotfiles/hyprland/.config/waybar/config +++ b/dotfiles/hyprland/.config/waybar/config @@ -28,7 +28,7 @@ "cpu", "temperature", "memory", - "disk", + "custom/disk", "battery" ] }, @@ -62,6 +62,7 @@ "interval": 10, "hwmon-path-abs": "/sys/devices/pci0000:00/0000:00:18.3/hwmon", "input-filename": "temp1_input", + "warning-threshold": 70, "critical-threshold": 80, "format": "󰔏 {temperatureC}°C", "format-critical": "󰸁 {temperatureC}°C", @@ -74,10 +75,11 @@ "on-click": "toggle-scratchpad monitor" }, - "disk": { + "custom/disk": { + "exec": "waybar-disk", + "return-type": "json", "interval": 30, - "format": "󰆼 {percentage_used}%", - "path": "/", + "format": "󰆼 {}", "on-click": "toggle-scratchpad monitor" }, -- cgit v1.2.3