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/.local/bin/waybar-disk | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 dotfiles/hyprland/.local/bin/waybar-disk (limited to 'dotfiles/hyprland/.local/bin') diff --git a/dotfiles/hyprland/.local/bin/waybar-disk b/dotfiles/hyprland/.local/bin/waybar-disk new file mode 100755 index 0000000..6050653 --- /dev/null +++ b/dotfiles/hyprland/.local/bin/waybar-disk @@ -0,0 +1,7 @@ +#!/bin/sh +# Waybar disk usage module with warning/critical states +PCT=$(df --output=pcent / | tail -1 | tr -d ' %') +CLASS="" +[ "$PCT" -ge 80 ] && CLASS="warning" +[ "$PCT" -ge 90 ] && CLASS="critical" +printf '{"text": "%s%%", "class": "%s", "tooltip": "Root: %s%% used"}\n' "$PCT" "$CLASS" "$PCT" -- cgit v1.2.3