Try if -F '#{TPCS}'

Or maybe $TPCS I forget.


On Thu, 22 Mar 2018, 17:34 Helmut K. C. Tessarek, <tessa...@evermeet.cx>
wrote:

> I'm trying to simulate a toggle*, but the following does not work:
>
> TPCS=1
>
> unbind C-b
> bind C-b if "if [ x$TPCS == x1 ]; then true; else false; fi" \
>         'set -g window-style "fg=default,bg=default" ; set -g
> window-active-style "fg=default,bg=default" ; setenv -g TPCS 0' \
>         'set -g window-style "fg=colour247,bg=colour234" ; set -g
> window-active-style "fg=colour250,bg=black" ; setenv -g TPCS 1'
>
> Any pointers?
>
> Cheers,
>   K. C.
>
> * I want to use the same key combination for setting/unsetting a certain
> behaviour.
>
> --
> regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
> Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
>
> /*
>    Thou shalt not follow the NULL pointer for chaos and madness
>    await thee at its end.
> */
>
> --
> 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 tmux-users+unsubscr...@googlegroups.com.
> To post to this group, send an email to tmux-users@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to