nixos/home/common/optional/desktop/status-bar/sb-mem-pct.sh

4 lines
123 B
Bash
Raw Normal View History

2024-06-13 23:33:14 +01:00
# Gets current ram percent utilisation
echo $(free | awk '/^Mem/ {print "100*" $3 " / " $2 }' | bc | awk '{print $1"%"}')