summaryrefslogtreecommitdiffstats
path: root/polybar/OpenBSD-storage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'polybar/OpenBSD-storage.sh')
-rwxr-xr-xpolybar/OpenBSD-storage.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/polybar/OpenBSD-storage.sh b/polybar/OpenBSD-storage.sh
index 6acd8b4..5266e6f 100755
--- a/polybar/OpenBSD-storage.sh
+++ b/polybar/OpenBSD-storage.sh
@@ -8,7 +8,12 @@ while true; do
while IFS= read -r LINE; do
PART="$(awk '{print $1}' <<< $LINE)"
PERC="$(awk '{print $5}' <<< $LINE)"
- print_line ${PART: -1} $PERC
+ if [[ "${PART: -1}" != "d" && \
+ "${PERC:: -1}" -le 50 ]]; then
+ continue
+ fi
+ MNT="$(awk '{print $6}' <<< $LINE)"
+ print_line "${MNT}" "${PERC}"
done <<< "$(df | grep '/dev/' | sort)"
echo
sleep 5