From 4616ee9ebe81761eff7c6d708a7ffc6e45175311 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Sun, 2 May 2021 19:24:57 -0300 Subject: [PATCH] Only set status-right-length when the network_bandwidth option is enabled --- scripts/dracula.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 89b1963..1d539d2 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -114,7 +114,7 @@ main() # set length tmux set-option -g status-left-length 100 - tmux set-option -g status-right-length 250 + tmux set-option -g status-right-length 100 # pane border styling if $show_border_contrast; then @@ -169,6 +169,7 @@ main() fi if [[ "$show_network_bandwith" != "" ]]; then # network bandwith + tmux set-option -g status-right-length 250 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 @@ -218,6 +219,7 @@ main() fi if [[ "$show_network_bandwith" != "" ]]; then # network bandwith + tmux set-option -g status-right-length 250 tmux set-option -ga status-right "#[fg=${dark_gray},bg=${green}] #($current_dir/network_bandwith.sh) " fi