From f0099e421a100407efabde9426115534eda7e850 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 15 Dec 2020 13:37:43 +0100 Subject: [PATCH] minimized statusbar --- .local/bin/statusbar/cpu | 3 ++- .local/bin/statusbar/memory | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.local/bin/statusbar/cpu b/.local/bin/statusbar/cpu index 5476f81..8a2e19b 100755 --- a/.local/bin/statusbar/cpu +++ b/.local/bin/statusbar/cpu @@ -9,8 +9,9 @@ esac #TEMPERATURE #load=$(sensors | awk '/Package id 0/ {print "🌡"$4}' | sed 's/\.[0-9]//; s/+//') +load=$(sensors | awk '/Package id 0/ {print $4}' | sed 's/\.[0-9]//; s/+//') #LOAD PERCENTAGE -load=$(top -n1 | awk 'NR==3 {print "🖩"$2"%"}') +#load=$(top -n1 | awk 'NR==3 {print "🖩"$2"%"}') [ -n "$load" ] && echo "$load" diff --git a/.local/bin/statusbar/memory b/.local/bin/statusbar/memory index dfd3d7b..2871440 100755 --- a/.local/bin/statusbar/memory +++ b/.local/bin/statusbar/memory @@ -6,4 +6,5 @@ case $BLOCK_BUTTON in - Click to show memory hogs." ;; esac -free -h | awk '/^Mem:/ {print $3 "/" $2}' +#free -h | awk '/^Mem:/ {print $3 "/" $2}' +free -h | awk '/^Mem:/{print $3}'