From f32efeaee10a63dbc879e16af4c3c596359d8293 Mon Sep 17 00:00:00 2001
From: Luca Bilke <luca@bil.ke>
Date: Tue, 23 Jul 2024 20:45:32 +0200
Subject: [PATCH] sb-disk: decrease output length

---
 .local/libexec/statusbar/sb-disk | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/.local/libexec/statusbar/sb-disk b/.local/libexec/statusbar/sb-disk
index 4e89e261..4347c544 100755
--- a/.local/libexec/statusbar/sb-disk
+++ b/.local/libexec/statusbar/sb-disk
@@ -7,9 +7,15 @@ types=${SB_DISK_FS:-ext2,ext3,ext4,xfs,btrfs,vfat}
 first=true
 for mnt in $(findmnt -Py -t "$types"); do
     eval "$mnt"
-    [ "$TARGET" = "/var/lib/docker" ] && break
-    $first || printf " | "
-    printf "%b" "${TARGET}: $(df -h "$TARGET" | awk ' /[0-9]/ {print $3 "/" $2}')"
+    case "$TARGET" in
+        /var/lib/docker) break ;;
+        /) icon="󰙅" ;;
+        /home) icon="󰋜" ;;
+        /boot*) icon="󰐥" ;;
+        *) icon="" ;;
+    esac
+    $first || printf " "
+    echo "${icon} $(df -h "$TARGET" | awk ' /[0-9]/ {print $3 "/" $2}')"
     first=false
 done
 printf "\n"