Help with User Options

17 views
Skip to first unread message

Jason White

unread,
Feb 10, 2021, 5:39:26 PM2/10/21
to tmux-...@googlegroups.com
Hello,
Started fiddling with user options. I have this configuraiton:

set -g @my-pane-active-border-style "fg=brightwhite,bold,bg=colour34"
set -g @my-pane-border-style "fg=brightwhite,bold,bg=colour243"

bind-key a if -F "#{pane_synchronized}" \
"setw synchronize-panes off; \
setw pane-active-border-style @my-pane-active-border-style ; \
setw pane-border-style @my-pane-border-style" \
"setw synchronize-panes on; \
setw pane-active-border-style fg=brightwhite,bold,bg=colour1; \
setw pane-border-style fg=brightwhite,bg=colour1"

When the section using the user options is called I get the error: "Invalid style: @my-pane-active-border-style".

$ tmux show -gv @my-pane-active-border-style
fg=brightwhite,bold,bg=colour34

The issue appears to be tmux not recognizing @name as a user option. If so, what's the proper syntax?

Thank you.
-Jason

--
Jason White
"The single biggest problem in communication is the illusion that it has taken place." - George Bernard Shaw

Nicholas Marriott

unread,
Feb 11, 2021, 12:42:36 AM2/11/21
to Jason White, tmux-users
If you want to use user options with set-option you need to use -F and include them as a first variable, for example:

set -F pane-active-border-style '#{@my-pane-active-border-style}'


--
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+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/YCRflgC5n5pUk5v0%40equinox.home.menelos.com.
Reply all
Reply to author
Forward
0 new messages