diff --git a/scripts/dracula.sh b/scripts/dracula.sh index b9eef058..806795a5 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -18,6 +18,7 @@ main() show_location=$(get_tmux_option "@dracula-show-location" true) fixed_location=$(get_tmux_option "@dracula-fixed-location") show_powerline=$(get_tmux_option "@dracula-show-powerline" false) + transparent_powerline_bg=$(get_tmux_option "@dracula-transparent-powerline-bg" false) show_flags=$(get_tmux_option "@dracula-show-flags" false) show_left_icon=$(get_tmux_option "@dracula-show-left-icon" smiley) show_left_icon_padding=$(get_tmux_option "@dracula-left-icon-padding" 1) @@ -26,6 +27,7 @@ main() show_timezone=$(get_tmux_option "@dracula-show-timezone" true) show_left_sep=$(get_tmux_option "@dracula-show-left-sep" ) show_right_sep=$(get_tmux_option "@dracula-show-right-sep" ) + show_inverse_divider=$(get_tmux_option "@dracula-inverse-divider" ) show_border_contrast=$(get_tmux_option "@dracula-border-contrast" false) show_day_month=$(get_tmux_option "@dracula-day-month" false) show_refresh=$(get_tmux_option "@dracula-refresh-rate" 5) @@ -49,6 +51,19 @@ main() pink='#ff79c6' yellow='#f1fa8c' + # Set transparency variables - Colors and window dividers + if $transparent_powerline_bg; then + bg_color="default" + window_sep_fg=${dark_purple} + window_sep_bg=default + window_sep="$show_inverse_divider" + else + bg_color=${gray} + window_sep_fg=${gray} + window_sep_bg=${dark_purple} + window_sep="$show_left_sep" + fi + # Handle left icon configuration case $show_left_icon in smiley) @@ -123,12 +138,12 @@ main() tmux set-option -g message-style "bg=${gray},fg=${white}" # status bar - tmux set-option -g status-style "bg=${gray},fg=${white}" + tmux set-option -g status-style "bg=${bg_color},fg=${white}" # Status left if $show_powerline; then - tmux set-option -g status-left "#[bg=${green},fg=${dark_gray}]#{?client_prefix,#[bg=${yellow}],} ${left_icon} #[fg=${green},bg=${gray}]#{?client_prefix,#[fg=${yellow}],}${left_sep}" - powerbg=${gray} + tmux set-option -g status-left "#[bg=${green},fg=${dark_gray}]#{?client_prefix,#[bg=${yellow}],} ${left_icon} #[fg=${green},bg=${bg_color}]#{?client_prefix,#[fg=${yellow}],}${left_sep}" + powerbg=${bg_color} else tmux set-option -g status-left "#[bg=${green},fg=${dark_gray}]#{?client_prefix,#[bg=${yellow}],} ${left_icon}" fi @@ -295,12 +310,12 @@ main() # Window option if $show_powerline; then - tmux set-window-option -g window-status-current-format "#[fg=${gray},bg=${dark_purple}]${left_sep}#[fg=${white},bg=${dark_purple}] #I #W${current_flags} #[fg=${dark_purple},bg=${gray}]${left_sep}" + 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}" else tmux set-window-option -g window-status-current-format "#[fg=${white},bg=${dark_purple}] #I #W${current_flags} " fi - tmux set-window-option -g window-status-format "#[fg=${white}]#[bg=${gray}] #I #W${flags}" + tmux set-window-option -g window-status-format "#[fg=${white}]#[bg=${bg_color}] #I #W${flags}" tmux set-window-option -g window-status-activity-style "bold" tmux set-window-option -g window-status-bell-style "bold" }