%if only works when the file is parsed. You cannot do this easily unless you build tmux from master - then you can use formats directly in pane-border-style.
Although there isn't much point in doing that for pane_active since that's what pane-active-border-style already does. On Thu, 28 May 2020, 17:23 Sivaram Neelakantan, <[email protected]> wrote: > I tried to changing pane styles and formats like this and I can't seem > to get the pane border style to change colour if inactive > > --8<---------------cut here---------------start------------->8--- > # setting pane titles and colours conditionally > %if "#{pane_active}" > set -g pane-active-border-style bg=red,fg=black > set -g pane-border-style fg=black > set-option -g pane-border-format "#stuff here" > %else > set -g pane-active-border-style bg=blue,fg=black > set -g pane-border-style fg=black > set-option -g pane-border-format "#stuff here" > %endif > --8<---------------cut here---------------end--------------->8--- > > what am I doing wrong? > > sivaram > -- > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/krpqx3blm83u77.fsf%40gmail.com > . > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcFCGotKzd_ei86GGX8MP2pdg-38nKnncD8hQq4z1AR%2B5A%40mail.gmail.com.
