solorice/config/eww/scripts/memory

4 lines
76 B
Bash
Executable File

#!/usr/bin/env bash
awk '/Mem:/ {printf "%.0f\n", ($3/$2)*100}' <(free -m)