nixos/home/desktop/config/eww/bar/scripts/getram

3 lines
76 B
Plaintext
Raw Normal View History

#!/bin/sh
printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')