Root commit.

This commit is contained in:
CronyAkatsuki 2023-08-23 19:45:38 +02:00
commit 7183fd6b99
21 changed files with 974 additions and 0 deletions

20
sb-disk-space Executable file
View file

@ -0,0 +1,20 @@
#!/bin/env bash
. sb-theme
while read -a Line; do
# if [ "${Line[5]}" == '/' ]; then
# root_size=${Line[1]}
# root_free=${Line[3]}
# fi
if [ "${Line[5]}" == '/home' ]; then
home_size=${Line[1]}
home_free=${Line[2]}
home_percent=${Line[4]}
break
fi
done <<< "$(df -h -x devtmpfs -x tmpfs -x usbfs -x loop)"
# display " $root_free/$root_size|$home_free/$home_size" $1
# display " $home_free/$home_size $home_percent" $1
display " $home_percent" $1