nixos/home/common/optional/desktop/dwm/scripts/sb-mem-pct.sh

4 lines
123 B
Bash

# Gets current ram percent utilisation
echo $(free | awk '/^Mem/ {print "100*" $3 " / " $2 }' | bc | awk '{print $1"%"}')