From 1451ccaff76ae4da537f167deace9c86918f2adc Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Mon, 1 Jun 2020 19:27:15 -0400 Subject: [PATCH] Fixed it for powerline, removed 'testing' on Mac --- scripts/cpu_info.sh | 3 +-- scripts/dracula.sh | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/scripts/cpu_info.sh b/scripts/cpu_info.sh index 37560ab..8879fb3 100755 --- a/scripts/cpu_info.sh +++ b/scripts/cpu_info.sh @@ -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 diff --git a/scripts/dracula.sh b/scripts/dracula.sh index aebdbcf..1e567e8 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -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}