diff options
| author | krolyxon <krolyxon@tutanota.com> | 2023-05-24 22:58:30 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2023-05-24 22:58:30 +0530 |
| commit | 8839ac5f3113f966b35920e412ef73b7aafece54 (patch) | |
| tree | 2b66b758edf5f74f2795bbe3e77d2b9728607c10 /.local/bin/statusbar/sb-memory | |
| parent | c1af8c0ef031d08812330e1cea925d3858bf6354 (diff) | |
scripts changes
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 ) ]" |
