From eeff7ec82dad99d07c00ba36976d57134eed3bba Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Sun, 7 Jun 2020 19:19:52 -0400 Subject: [PATCH] Trying to get this to work --- scripts/dracula.sh | 6 +++--- scripts/ram_info.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 77e244d..cc2c882 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -47,11 +47,11 @@ main() # Handle left icon configuration case $show_left_icon in smiley) - left_icon="☺";; + left_icon="☺ ";; session) - left_icon="#S";; + left_icon="#S ";; window) - left_icon="#W";; + left_icon="#W ";; *) left_icon=$show_left_icon;; esac diff --git a/scripts/ram_info.sh b/scripts/ram_info.sh index ed5c1bd..60de0cd 100755 --- a/scripts/ram_info.sh +++ b/scripts/ram_info.sh @@ -18,7 +18,7 @@ get_percent() Darwin) # percent=$(ps -A -o %mem | awk '{mem += $1} END {print mem}') - used_mem=$(top -l 1 -s 0 | grep PhysMem | awk '{mem += $2} END {print mem}') + used_mem=$(top -l 1 -s 0 | grep PhysMem | awk '{print $2 $3}' | sed 's/used//g') total_mem=$(system_profiler SPHardwareDataType | grep "Memory:" | awk '{print $2 $3}' | sed 's/used//g') echo $used_mem/$total_mem\G\B ;;