aboutsummaryrefslogtreecommitdiff
path: root/lemonblocks/modules/mem_usage.sh
blob: 6b939ebc5dab9bd8a22009b587d4a57922e85be6 (plain)
1
2
3
4
#!/bin/bash

mem=$(free -m | grep Mem: | awk '{print$3 / $2 * 100}')
printf " MEM: %.0f%% " $mem