statusbar-scripts/sb-ram

15 lines
225 B
Plaintext
Raw Normal View History

2023-08-23 19:45:38 +02:00
#!/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"