1818  show_location=$( get_tmux_option " @dracula-show-location" ) 
1919  fixed_location=$( get_tmux_option " @dracula-fixed-location" ) 
2020  show_powerline=$( get_tmux_option " @dracula-show-powerline" ) 
21+   transparent_powerline_bg=$( get_tmux_option " @dracula-transparent-powerline-bg" ) 
2122  show_flags=$( get_tmux_option " @dracula-show-flags" ) 
2223  show_left_icon=$( get_tmux_option " @dracula-show-left-icon" ) 
2324  show_left_icon_padding=$( get_tmux_option " @dracula-left-icon-padding" ) 
2627  show_timezone=$( get_tmux_option " @dracula-show-timezone" ) 
2728  show_left_sep=$( get_tmux_option " @dracula-show-left-sep" ) 
2829  show_right_sep=$( get_tmux_option " @dracula-show-right-sep" ) 
30+   show_inverse_divider=$( get_tmux_option " @dracula-inverse-divider" ) 
2931  show_border_contrast=$( get_tmux_option " @dracula-border-contrast" ) 
3032  show_day_month=$( get_tmux_option " @dracula-day-month" ) 
3133  show_refresh=$( get_tmux_option " @dracula-refresh-rate" ) 
@@ -37,17 +39,30 @@ main()
3739  show_empty_plugins=$( get_tmux_option " @dracula-show-empty-plugins" ) 
3840
3941  #  Dracula Color Pallette
40-   white=' #f8f8f2' 
41-   gray=' #44475a' 
42-   dark_gray=' #282a36' 
43-   light_purple=' #bd93f9' 
44-   dark_purple=' #6272a4' 
45-   cyan=' #8be9fd' 
46-   green=' #50fa7b' 
47-   orange=' #ffb86c' 
48-   red=' #ff5555' 
49-   pink=' #ff79c6' 
50-   yellow=' #f1fa8c' 
42+   white=$( get_tmux_option " @dracula-color-white" " #f8f8f2" ) 
43+   gray=$( get_tmux_option " @dracula-color-gray" " #44475a" ) 
44+   dark_gray=$( get_tmux_option " @dracula-color-dark_gray" " #282a36" ) 
45+   light_purple=$( get_tmux_option " @dracula-color-light_purple" " #bd93f9" ) 
46+   dark_purple=$( get_tmux_option " @dracula-color-dark_purple" " #6272a4" ) 
47+   cyan=$( get_tmux_option " @dracula-color-cyan" " #8be9fd" ) 
48+   green=$( get_tmux_option " @dracula-color-green" " #50fa7b" ) 
49+   orange=$( get_tmux_option " @dracula-color-orange" " #ffb86c" ) 
50+   red=$( get_tmux_option " @dracula-color-red" " #ff5555" ) 
51+   pink=$( get_tmux_option " @dracula-color-pink" " #ff79c6" ) 
52+   yellow=$( get_tmux_option " @dracula-color-yellow" " #f1fa8c" ) 
53+ 
54+   #  Set transparency variables - Colors and window dividers
55+   if  $transparent_powerline_bg ;  then 
56+     bg_color=" default" 
57+     window_sep_fg=${dark_purple} 
58+     window_sep_bg=default
59+     window_sep=" $show_inverse_divider " 
60+   else 
61+     bg_color=${gray} 
62+     window_sep_fg=${gray} 
63+     window_sep_bg=${dark_purple} 
64+     window_sep=" $show_left_sep " 
65+   fi 
5166
5267  #  Handle left icon configuration
5368  case  $show_left_icon  in 
@@ -123,12 +138,12 @@ main()
123138  tmux set-option -g message-style " bg=${gray} ,fg=${white} " 
124139
125140  #  status bar
126-   tmux set-option -g status-style " bg=${gray } ,fg=${white} " 
141+   tmux set-option -g status-style " bg=${bg_color } ,fg=${white} " 
127142
128143  #  Status left
129144  if  $show_powerline ;  then 
130-     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} " 
131-     powerbg=${gray } 
145+     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} " 
146+     powerbg=${bg_color } 
132147  else 
133148    tmux set-option -g status-left " #[bg=${green} ,fg=${dark_gray} ]#{?client_prefix,#[bg=${yellow} ],} ${left_icon} " 
134149  fi 
@@ -295,12 +310,12 @@ main()
295310
296311  #  Window option
297312  if  $show_powerline ;  then 
298-     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} " 
313+     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} " 
299314  else 
300315    tmux set-window-option -g window-status-current-format " #[fg=${white} ,bg=${dark_purple} ] #I #W${current_flags}  " 
301316  fi 
302317
303-   tmux set-window-option -g window-status-format " #[fg=${white} ]#[bg=${gray } ] #I #W${flags} " 
318+   tmux set-window-option -g window-status-format " #[fg=${white} ]#[bg=${bg_color } ] #I #W${flags} " 
304319  tmux set-window-option -g window-status-activity-style " bold" 
305320  tmux set-window-option -g window-status-bell-style " bold" 
306321}
0 commit comments