From 8839ac5f3113f966b35920e412ef73b7aafece54 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Wed, 24 May 2023 22:58:30 +0530 Subject: scripts changes --- .local/bin/statusbar/sb-memory | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.local/bin/statusbar/sb-memory') 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 ) ]" -- cgit v1.2.3