15 lines
225 B
Bash
Executable File
15 lines
225 B
Bash
Executable File
#!/bin/env bash
|
|
|
|
. sb-theme
|
|
|
|
while read -a Line; do
|
|
if [ "${Line[0]}" == 'Mem:' ]; then
|
|
Total=${Line[1]}
|
|
Used=${Line[2]}
|
|
|
|
break
|
|
fi
|
|
done <<< "$(free -h --mega)"
|
|
|
|
display " $Used/$Total" "$1"
|