From 3e4add69187aad485e43e87b28187f910161d3ce Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Mon, 1 Jun 2020 10:39:17 -0400 Subject: [PATCH] Added Mac (? testing) support, added comments --- scripts/cpu_info.sh | 4 ++-- scripts/dracula.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cpu_info.sh b/scripts/cpu_info.sh index 861f754..74aaa46 100755 --- a/scripts/cpu_info.sh +++ b/scripts/cpu_info.sh @@ -10,7 +10,7 @@ get_percent() ;; Mac) - # TODO - Mac compatability + percent=$(ps -A -o %cpu | awk '{s+=$1} END {print s "%"}') ;; Windows) @@ -27,7 +27,7 @@ check_os() ;; Darwin) - # Dont have a mac currently, TODO - Mac compatability + # Dont have a mac currently, TODO - Mac compatability - May have a solution, testing get_percent Mac ;; diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 27a5d2a..aebdbcf 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -66,11 +66,11 @@ main() $current_dir/sleep_weather.sh $show_fahrenheit & fi + # start cpu script in the background if $show_cpu_percentage; then $current_dir/cpu_info.sh & fi - # sets refresh interval to every 5 seconds tmux set-option -g status-interval 5