diff options
Diffstat (limited to '.local/bin/statusbar/sb-memory')
| -rwxr-xr-x | .local/bin/statusbar/sb-memory | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-memory b/.local/bin/statusbar/sb-memory index 3e78a22..b894ca1 100755 --- a/.local/bin/statusbar/sb-memory +++ b/.local/bin/statusbar/sb-memory @@ -1,2 +1,4 @@ #!/bin/sh -echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]" +# echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]" + +echo "[ $(free -h --si | sed -n "2s/\([^ ]* *\)\{2\}\([^ ]*\).*/\2/p") $(grep -o "^[^ ]*" /proc/loadavg ) ]" |
