From 6c4fc5e429f362c0c5544d34f17285c4cfc16ba8 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Mon, 24 Aug 2026 01:47:36 -0400 Subject: remove old filesand bump nix-files --- home-config/waybar/modules/storage.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 home-config/waybar/modules/storage.sh (limited to 'home-config/waybar/modules/storage.sh') diff --git a/home-config/waybar/modules/storage.sh b/home-config/waybar/modules/storage.sh deleted file mode 100755 index 90cc3dc..0000000 --- a/home-config/waybar/modules/storage.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -mount="/" -warning=20 -critical=10 - -df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical ' -/\/.*/ { - text=$4 - tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6 - use=$5 - exit 0 -} -END { - class="" - gsub(/%$/,"",use) - if ((100 - use) < critical) { - class="critical" - } else if ((100 - use) < warning) { - class="warning" - } - print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}" -} -' - -- cgit v1.3.1