12 lines
376 B
Bash
Executable File
12 lines
376 B
Bash
Executable File
#!/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
|