From 21cc83966aafc57e2bf80b003a2c10bd7dbf8b00 Mon Sep 17 00:00:00 2001 From: Filippo Ferrari Date: Thu, 8 Feb 2024 09:30:03 +0100 Subject: [PATCH] edit: sb-memory script --- .local/bin/statusbar/sb-memory | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/statusbar/sb-memory b/.local/bin/statusbar/sb-memory index 8178b10..7043775 100755 --- a/.local/bin/statusbar/sb-memory +++ b/.local/bin/statusbar/sb-memory @@ -6,7 +6,7 @@ case $BLOCK_BUTTON in 3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total. - Click to show memory hogs. - Middle click to open htop." ;; - 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; + 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2fGiB/%2.2fGiB\n", ( $3 / 1024), ($2 / 1024))}' +free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠%2.2f/%2.2fGb\n", ( $3 / 1024), ($2 / 1024))}'