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

3 lines
76 B
Bash

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