Compare commits
2 Commits
a4378c2bb3
...
91c0a412bf
| Author | SHA1 | Date | |
|---|---|---|---|
| 91c0a412bf | |||
| 4584a1a4c3 |
@@ -56,7 +56,7 @@ function dwm-status {
|
|||||||
readout="$readout | $storage"
|
readout="$readout | $storage"
|
||||||
readout="$readout | $volume"
|
readout="$readout | $volume"
|
||||||
readout="$readout | $userhost"
|
readout="$readout | $userhost"
|
||||||
readout="$readout $datetime"
|
readout="$readout | $datetime"
|
||||||
$cmd "$readout"
|
$cmd "$readout"
|
||||||
readout=""
|
readout=""
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
|
|||||||
@@ -13,13 +13,15 @@ function storage-display {
|
|||||||
df -h "$location" | tail -n 1 | awk '{print $5" Used"}'
|
df -h "$location" | tail -n 1 | awk '{print $5" Used"}'
|
||||||
elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]]; then
|
elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]]; then
|
||||||
df -h "$location" | tail -n 1 | awk '{print $4"/"$2" Free"}'
|
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
|
else
|
||||||
df -h "$location" | tail -n 1 | awk '{print $5" Used, "$4"/"$2" Free"}'
|
df -h "$location" | tail -n 1 | awk '{print $5" Used, "$4"/"$2" Free"}'
|
||||||
fi
|
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 {
|
function storage-root {
|
||||||
storage-display / "$1"
|
storage-display / "$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user