nixos/home/hyprland/ironbar/reference/scripts/memory

4 lines
77 B
Plaintext
Raw Normal View History

2023-10-10 20:00:04 +01:00
#!/bin/sh
printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')