JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix move_to_ws as fallout from killing cur_focus
[spectrwm.git] / baraction.sh
index d8d519c..57f0e60 100644 (file)
@@ -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  "
 }