From 91c0a412bfe04adaa869eb325326ae2de61e1534 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 10 Nov 2025 21:29:46 -0700 Subject: [PATCH] Change storage output to be shorter. --- files/dwm/storage.function | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/dwm/storage.function b/files/dwm/storage.function index 774c736..b06e56c 100755 --- a/files/dwm/storage.function +++ b/files/dwm/storage.function @@ -13,13 +13,15 @@ function storage-display { df -h "$location" | tail -n 1 | awk '{print $5" Used"}' elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]]; then df -h "$location" | tail -n 1 | awk '{print $4"/"$2" Free"}' + elif [[ "$style" == "G" || "$style" == "S" || "$style" == "F" ]]; then + df -h "$location" | tail -n 1 | awk '{print $4" Free"}' else df -h "$location" | tail -n 1 | awk '{print $5" Used, "$4"/"$2" Free"}' fi } -alias storage='echo -n "Root: " && storage-display "/" && echo -n "Home: " && storage-display "/home"' +alias storage='echo -n "Root: " && storage-display "/" "F" && echo -n "Home: " && storage-display "/home" "F"' -export dwm_storage_style="usage" +export dwm_storage_style="F" function storage-root { storage-display / "$1"