|  | 
| 39 | 39 |   show_day_month=$(get_tmux_option "@dracula-day-month" false) | 
| 40 | 40 |   show_time=$(get_tmux_option "@dracula-show-time" true) | 
| 41 | 41 |   show_refresh=$(get_tmux_option "@dracula-refresh-rate" 5) | 
|  | 42 | +  show_network_bandwith=$(get_tmux_option "@dracula-network-bandwith" "") | 
| 42 | 43 | 
 | 
| 43 | 44 |   # Dracula Color Pallette | 
| 44 | 45 |   white='#f8f8f2' | 
| @@ -113,7 +114,7 @@ main() | 
| 113 | 114 | 
 | 
| 114 | 115 |   # set length | 
| 115 | 116 |   tmux set-option -g status-left-length 100 | 
| 116 |  | -  tmux set-option -g status-right-length 100 | 
|  | 117 | +  tmux set-option -g status-right-length 100  | 
| 117 | 118 | 
 | 
| 118 | 119 |   # pane border styling | 
| 119 | 120 |   if $show_border_contrast; then | 
| @@ -167,6 +168,12 @@ main() | 
| 167 | 168 |         powerbg=${cyan} | 
| 168 | 169 |       fi | 
| 169 | 170 | 
 | 
|  | 171 | +      if [[ "$show_network_bandwith" != "" ]]; then # network bandwith | 
|  | 172 | +        tmux set-option -g status-right-length 250  | 
|  | 173 | +        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)" | 
|  | 174 | +        powerbg=${green} | 
|  | 175 | +      fi | 
|  | 176 | + | 
| 170 | 177 |       if $show_weather; then # weather | 
| 171 | 178 |         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)" | 
| 172 | 179 |         powerbg=${orange} | 
| @@ -211,6 +218,11 @@ main() | 
| 211 | 218 |         tmux set-option -ga status-right "#[fg=${dark_gray},bg=${cyan}] #($current_dir/network.sh) " | 
| 212 | 219 |       fi | 
| 213 | 220 | 
 | 
|  | 221 | +      if [[ "$show_network_bandwith" != "" ]]; then # network bandwith | 
|  | 222 | +        tmux set-option -g status-right-length 250  | 
|  | 223 | +        tmux set-option -ga status-right "#[fg=${dark_gray},bg=${green}] #($current_dir/network_bandwith.sh) " | 
|  | 224 | +      fi | 
|  | 225 | + | 
| 214 | 226 |       if $show_weather; then # weather | 
| 215 | 227 |           tmux set-option -ga status-right "#[fg=${dark_gray},bg=${orange}] #(cat $current_dir/../data/weather.txt) " | 
| 216 | 228 |       fi | 
|  | 
0 commit comments