From d2e7060f89e8782c223bc8a29091cca429bc318a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 31 May 2024 20:52:53 +0530 Subject: (Scripts|SystemD)~lower size of scripts --- Scripts/.local/scripts/status/memory | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Scripts/.local/scripts/status/memory') diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory index 2d1c328..e9e6f8d 100755 --- a/Scripts/.local/scripts/status/memory +++ b/Scripts/.local/scripts/status/memory @@ -5,10 +5,4 @@ used=$(echo $line | awk '{print $3}'); available=$(echo $line | awk '{print $2}'); value=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1) -emacs=$(systemctl --user status emacs | grep "Memory: " | sed "s/[ ]*//;s/Memory: //") -if [[ $emacs -eq "" ]]; -then - emacs="N/A" -fi - -echo "⾝ $(printf "%dMB" $used) $value% -> $emacs" +echo "⾝ $(printf "%dMB" $used) $value%" -- cgit v1.2.3-13-gbd6f