nixos-config/modules/workspace/i3blocks/scripts/free.nix

6 lines
121 B
Nix

{ bc, ... }: ''
echo `free | tail -2 | head -1 | awk '{print "scale=3; "$7"/1000000"}' | ${
bc
}/bin/bc -l`GB
''