X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=baraction.sh;h=57f0e60e7eff90521afb64830bb3c7f03744d6b5;hb=05347c2d3eb542553ae91e9d75800a5303d2e385;hp=d8d519c3b393557a236af81607220042fa184c72;hpb=52847d834188dce22fe89c75810ebfbb1042ea48;p=spectrwm.git diff --git a/baraction.sh b/baraction.sh index d8d519c..57f0e60 100644 --- a/baraction.sh +++ b/baraction.sh @@ -1,4 +1,6 @@ #!/bin/sh +# +# $scrotwm$ print_date() { # The date is printed to the status bar by default. @@ -10,7 +12,7 @@ print_date() { } print_mem() { - MEM=`/usr/bin/top | grep Free: | awk {'print $6'}` + MEM=`/usr/bin/top | grep Free: | cut -d " " -f7` echo -n "Free mem: $MEM " }