Fixed it for powerline, removed 'testing' on Mac

This commit is contained in:
Ethan Edwards 2020-06-01 19:27:15 -04:00
parent a17746e0d1
commit 1451ccaff7
2 changed files with 6 additions and 7 deletions

View file

@ -28,7 +28,6 @@ check_os()
;;
Darwin)
# Dont have a mac currently, TODO - Mac compatability - May have a solution, testing
get_percent Mac
;;
@ -48,7 +47,7 @@ main()
{
cpu_percent=$(check_os)
echo "CPU $cpu_percent"
sleep 5
sleep 10
}
#run main driver
main

View file

@ -103,16 +103,16 @@ main()
tmux set-option -g status-right ""
powerbg=${gray}
if $show_cpu_percentage; then
tmux set-option -ga status-right "#[fg=${pink},bg=${powerbg},nobold,nounderscore,noitalics] ${right_sep}#[fg=${dark_gray},bg=${pink}] #($current_dir/cpu_info.sh)"
powerbg=${pink}
fi
if $show_battery; then # battery
tmux set-option -g status-right "#[fg=${pink},bg=${powerbg},nobold,nounderscore,noitalics] ${right_sep}#[fg=${dark_gray},bg=${pink}] #($current_dir/battery.sh)"
powerbg=${pink}
fi
if $show_cpu_percentage; then
tmux set-option -ga status-right "#[fg=${orange},bg=${powerbg},nobold,nounderscore,noitalics] ${right_sep}#[fg=${dark_gray},bg=${orange}] #($current_dir/cpu_info.sh)"
powerbg=${orange}
fi
if $show_network; then # network
tmux set-option -ga status-right "#[fg=${cyan},bg=${powerbg},nobold,nounderscore,noitalics] ${right_sep}#[fg=${dark_gray},bg=${cyan}] #($current_dir/network.sh)"
powerbg=${cyan}