From 50d3104f9f78de88749660b3ab7a650dfe9426c4 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 10 Nov 2025 17:01:58 -0700 Subject: [PATCH] Rename the function to be more consistent and add a sane default check. --- files/dwm/storage.function | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/dwm/storage.function b/files/dwm/storage.function index fc1eddd..64fc85d 100755 --- a/files/dwm/storage.function +++ b/files/dwm/storage.function @@ -1,7 +1,7 @@ #!/usr/bin/env bash # 2025-11-10 Hyperling -function storage { +function storage-display { location="$1" style="$2" @@ -17,6 +17,7 @@ function storage { df -h "$location" | tail -n 1 | awk '{print $5" Free, "$3"/"$2" Used"}' fi } +alias storage='echo -n "Root: " && storage-display "/" && echo -n "Home: " && storage-display "/home"' export dwm_storage_style="usage"