diff --git a/files/dwm/storage.function b/files/dwm/storage.function index 7809023..774c736 100755 --- a/files/dwm/storage.function +++ b/files/dwm/storage.function @@ -10,11 +10,11 @@ function storage-display { fi if [[ "$style" == "%" || "$style" == "pct" || "$style" == "percent" ]]; then - df -h "$location" | tail -n 1 | awk '{print $5}' + 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 $3"/"$2}' + df -h "$location" | tail -n 1 | awk '{print $4"/"$2" Free"}' else - df -h "$location" | tail -n 1 | awk '{print $5" Free, "$3"/"$2" Used"}' + 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"'