diff --git a/scripts/dracula.sh b/scripts/dracula.sh index d52449f..89b1963 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -39,6 +39,7 @@ main() show_day_month=$(get_tmux_option "@dracula-day-month" false) show_time=$(get_tmux_option "@dracula-show-time" true) show_refresh=$(get_tmux_option "@dracula-refresh-rate" 5) + show_network_bandwith=$(get_tmux_option "@dracula-network-bandwith" "") # Dracula Color Pallette white='#f8f8f2' @@ -167,6 +168,11 @@ main() powerbg=${cyan} fi + if [[ "$show_network_bandwith" != "" ]]; then # network bandwith + tmux set-option -ga status-right "#[fg=${green},bg=${powerbg},nobold,nounderscore,noitalics] ${right_sep}#[fg=${dark_gray},bg=${green}] #($current_dir/network_bandwith.sh)" + powerbg=${green} + fi + if $show_weather; then # weather tmux set-option -ga status-right "#[fg=${orange},bg=${powerbg},nobold,nounderscore,noitalics] ${right_sep}#[fg=${dark_gray},bg=${orange}] #(cat $current_dir/../data/weather.txt)" powerbg=${orange} @@ -211,6 +217,10 @@ main() tmux set-option -ga status-right "#[fg=${dark_gray},bg=${cyan}] #($current_dir/network.sh) " fi + if [[ "$show_network_bandwith" != "" ]]; then # network bandwith + tmux set-option -ga status-right "#[fg=${dark_gray},bg=${green}] #($current_dir/network_bandwith.sh) " + fi + if $show_weather; then # weather tmux set-option -ga status-right "#[fg=${dark_gray},bg=${orange}] #(cat $current_dir/../data/weather.txt) " fi