diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 172a6da0..6380a8b0 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -35,6 +35,8 @@ main() { show_refresh=$(get_tmux_option "@dracula-refresh-rate" 5) show_synchronize_panes_label=$(get_tmux_option "@dracula-synchronize-panes-label" "Sync") time_format=$(get_tmux_option "@dracula-time-format" "") + IFS=' ' read -r -a current_window_colors <<< $(get_tmux_option "@dracula-current-window-colors" "dark_purple white") + IFS=' ' read -r -a window_colors <<< $(get_tmux_option "@dracula-window-colors" "gray white") show_ssh_session_port=$(get_tmux_option "@dracula-show-ssh-session-port" false) show_libreview=$(get_tmux_option "@dracula-show-libreview" false) show_empty_plugins=$(get_tmux_option "@dracula-show-empty-plugins" true) @@ -374,14 +376,15 @@ main() { # Window option if $show_powerline; then - tmux set-window-option -g window-status-current-format "#[fg=${window_sep_fg},bg=${window_sep_bg}]${window_sep}#[fg=${white},bg=${dark_purple}] #I #W${current_flags} #[fg=${dark_purple},bg=${bg_color}]${left_sep}" + tmux set-window-option -g window-status-current-format "#[fg=${window_sep_fg},bg=${window_sep_bg}]${window_sep}#[fg=${!current_window_colors[1]},bg=${!current_window_colors[0]}] #I #W${current_flags} #[fg=${dark_purple},bg=${bg_color}]${left_sep}" else - tmux set-window-option -g window-status-current-format "#[fg=${white},bg=${dark_purple}] #I #W${current_flags} " + tmux set-window-option -g window-status-current-format "#[fg=${!current_window_colors[1]},bg=${!current_window_colors[0]}] #I #W${current_flags} " fi - tmux set-window-option -g window-status-format "#[fg=${white}]#[bg=${bg_color}] #I #W${flags}" + tmux set-window-option -g window-status-format "#[fg=${!window_colors[1]}]#[bg=${!window_colors[0]}] #I #W${flags}" tmux set-window-option -g window-status-activity-style "bold" tmux set-window-option -g window-status-bell-style "bold" + } # run main function