From ec50c1347b5691d07d59cdca533743bc687c240d Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 16 Feb 2025 22:58:51 +0100 Subject: [PATCH] statusbar: fixed bug in memory script --- .local/bin/etc/statusbar/memory | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/etc/statusbar/memory b/.local/bin/etc/statusbar/memory index dd5c5a7..ad41c13 100755 --- a/.local/bin/etc/statusbar/memory +++ b/.local/bin/etc/statusbar/memory @@ -1,7 +1,7 @@ #!/bin/sh icon="^b#282828^^c#dfdfdf^  ^d^ " -total=$(free -h | awk '/^Mem:/ {print $3/$2}') +total=$(free --mebi | awk '/^Mem:/ {print $3/$2}') percent=$(printf %3s $(printf %-4s $total | tr ' ' '0' | cut -c1-4 | sed -e 's/\.//g' | sed -e 's/^0//g') | tr ' ' ' ') if [ $percent -gt 75 ]