nixos-config/user/eww/scripts/getram
2022-08-20 17:46:03 -03:00

3 lines
76 B
Bash
Executable file

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