+ Added free disks indicator to polybar + Trying out lfimg (Buggy) + Rework rateUSD + Rework PATH, now detect any subdir inside .local/bin + lf now can be accessed inside vim
8 lines
221 B
Bash
Executable file
8 lines
221 B
Bash
Executable file
#!/bin/sh
|
|
|
|
capacity=$(df -h --output=source,avail /home | grep -A1 '/' | sed "s/^.* //;s/[[:alpha:]]//")
|
|
warn=""
|
|
if [ $capacity -lt 71 ]; then warn='!'; fi
|
|
|
|
printf "%s%s" "$warn " "$(echo $capacity | sed "s/$/G free/")"
|
|
|