Added Mac (? testing) support, added comments

This commit is contained in:
Ethan Edwards 2020-06-01 10:39:17 -04:00
parent b10c4dcf18
commit 3e4add6918
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ get_percent()
;; ;;
Mac) Mac)
# TODO - Mac compatability percent=$(ps -A -o %cpu | awk '{s+=$1} END {print s "%"}')
;; ;;
Windows) Windows)
@ -27,7 +27,7 @@ check_os()
;; ;;
Darwin) 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 get_percent Mac
;; ;;

View file

@ -66,11 +66,11 @@ main()
$current_dir/sleep_weather.sh $show_fahrenheit & $current_dir/sleep_weather.sh $show_fahrenheit &
fi fi
# start cpu script in the background
if $show_cpu_percentage; then if $show_cpu_percentage; then
$current_dir/cpu_info.sh & $current_dir/cpu_info.sh &
fi fi
# sets refresh interval to every 5 seconds # sets refresh interval to every 5 seconds
tmux set-option -g status-interval 5 tmux set-option -g status-interval 5