all repos — dotfiles @ 669106fd9f2072ed2f7224bc5c1b9ecd7fc66bd3

linux dotfiles

config/i3blocks/disk

1 2 3 4 5 6
#!/bin/sh

home_avail=$(df -B 1 ~/ | awk 'NR==2 {printf "%0.1fGiB", $4/1024/1024/1024}')
root_avail=$(df -B 1 / | awk 'NR==2 {printf "%0.1fGiB", $4/1024/1024/1024}')
# icon="<span font='Font Awesome 5 Free'>\uf0a0</span>"
echo -e "$icon$home_avail"