mabox-colorizer/bin/conkymountpoints.sh

12 lines
376 B
Bash
Raw Normal View History

2022-10-15 12:19:57 +02:00
#!/bin/bash
getdata () {
df -h | grep -v "boot" | grep '^/dev' | while read DEVICE SIZE USED FREE PERCENT MOUNT
do
[[ "${#MOUNT}" -gt "12" ]] && MOUNTLBL=${MOUNT##*/} || MOUNTLBL=${MOUNT}
echo "$MOUNTLBL\${goto 90}\${color2}\${fs_bar 6,64 $MOUNT}\${color}\${goto 160}$USED\${goto 200}$PERCENT\${alignr}$SIZE"
done
}
echo "\${goto 160}used\${goto 200}%\${alignr}size"
getdata