nixos-config/user/eww/scripts/getram

3 lines
76 B
Plaintext
Raw Normal View History

2022-08-20 17:46:03 -03:00
#!/bin/sh
printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')