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

6 lines
121 B
Nix
Raw Normal View History

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