Latest updates to DE

This commit is contained in:
Alex Selimov 2025-05-26 22:27:48 -04:00
parent 4f621f9874
commit 41c39315b6
26 changed files with 60 additions and 65 deletions

View file

@ -6,10 +6,10 @@ total=$(grep -oP '^MemTotal: *\K[0-9]+' /proc/meminfo)
mem=" $(echo "scale=1; 100*($total-$available)/$total"| bc | cut -d '.' -f1 )"
if [ $mem -gt 80 ]; then
mem="$mem"
mem="$mem %"
elif [ $mem -gt 50 ]; then
mem="$mem"
mem="$mem %"
else
mem="$mem"
mem=""
fi
echo "$mem%"
echo "$mem"