Some of the colours like the tmux_conf_theme_username_bg, for example, can't be overwritten using the tmux.conf.local file.
this fixes the issue:
diff --git a/.tmux.conf b/.tmux.conf
index cd1830a..e6ba423 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -267,13 +267,13 @@ run 'cut -c3- ~/.tmux.conf | sh -s apply_configuration'
# tmux_conf_theme_prefix_bg=${tmux_conf_theme_prefix_bg:-colour16} # black
# tmux_conf_theme_time_date_fg=${tmux_conf_theme_time_date_fg:-colour247} # light gray
# tmux_conf_theme_time_date_bg=${tmux_conf_theme_time_date_bg:-colour232} # dark gray
-# tmux_conf_theme_username_fg=colour254 # white
-# tmux_conf_theme_username_bg=colour160 # red
-# tmux_conf_theme_hostname_fg=colour16 # black
-# tmux_conf_theme_hostname_bg=colour254 # white
+# tmux_conf_theme_username_fg=${tmux_conf_theme_username_fg:-colour254} # white
+# tmux_conf_theme_username_bg=${tmux_conf_theme_username_bg:-colour160} # red
+# tmux_conf_theme_hostname_fg=${tmux_conf_theme_hostname_fg:-colour16} # black
+# tmux_conf_theme_hostname_bg=${tmux_conf_theme_hostname_bg:-colour254} # white
#
# if [ x"$prefix_enabled" = x"true" ] ; then
-# status_right_prefix="#{?client_prefix,#[fg=$tmux_conf_theme_prefix_fg]#[bg=$tmux_conf_theme_prefix_bg]#[bold]⌨ #[fg=$tmux_conf_theme_prefix_fg]#[bg=$tmux_conf_theme_status_bg]#[nobold],}"
+# status_right_prefix="#{?client_prefix,#[fg=$tmux_conf_theme_prefix_fg]#[bg=$tmux_conf_theme_prefix_bg]#[bold]⌨ #[fg=$tmux_conf_theme_prefix_fg]#[bg=$tmux_conf_theme_status_bg]#[nobold],}"
# fi
# if [ x"$battery_enabled" = x"true" ] ; then
# status_right_battery="${tmux_conf_battery:-#(cut -c3- ~/.tmux.conf | sh -s battery ${tmux_conf_battery_style:-bar} ${tmux_conf_battery_symbol:-block} ${tmux_conf_battery_symbol_count:-auto} \"${tmux_conf_battery_palette:-colour160,colour254,colour16}\" ${tmux_conf_battery_status:-enabled})} "
Hi,
PR #31 fixes this and adds a new feature, when synchronize-panes is active, it displays a notification in the status bar.
Hello Luis, thanks for your contribution. As you can see, I just pushed a major rewrite that makes that PR void. Hope you enjoy the new version!
I see, you can close the PR then.
Thanks
Were you able to achieve what you wanted with the new way of configuring the status line?
Yes, now I can set all the colours I want to and I can have a notification for when I have pane synchronization active:
tmux_conf_theme_status_left=' ❐ #S#{?window_zoomed_flag, 🔍,} , #{?pane_synchronized,Sync!,•} | ↑#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} '
The new version is very cool, thanks.
About colors, you can use #[inherit], e.g.
tmux_conf_theme_status_left='#[fg=red,bg=yellow] foo#[inherit] #S ... | bar, baz '
And #[inherit] will be substituted to the proper fg, bg, attr as per the current "position" in tmux_conf_theme_status_left_fg, tmux_conf_theme_status_left_bg, tmux_conf_theme_status_left_attr