statusbar-scripts/sb-ram
2023-08-23 19:45:38 +02:00

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"