Article 5T6B2 Changing tmux status bar color for just one session, not all of them

Changing tmux status bar color for just one session, not all of them

by
Turbocapitalist
from LinuxQuestions.org on (#5T6B2)
I have several concurrent tmux 3.1c sessions running within the same account:

Code:$ tmux ls
two: 2 windows (created Wed Dec 15 05:50:39 2021) (attached)
one: 4 windows (created Tue Dec 14 06:19:07 2021) (attached)

$ tmux -V
tmux 3.1c

$ ps -p $(pgrep -u $USER -d , "tmux?") -o uid,pid,args
UID PID COMMAND
1001 39601 /usr/bin/tmux new-session -s one -n a ...
1001 53579 tmux a -t two -d
1001 57946 /usr/bin/tmux attach-session -d -t oneI would like to change the background color of a single session without affecting the other session. How is this possible?

I have tried using set-option with and without -g or -t but all four combinations change the status bar color for both sessions.

Code:$ tmux set-option -t two status-bg green

$ tmux set-option -t one status-bg blueBoth of those change the background color of the status bar for both session rather than the single session designated by the -t option. How can I change the settings for just the one session?latest?d=yIl2AUoC8zA latest?i=xoQVKVATol4:Jnc1YZrjc3Q:F7zBnMy latest?i=xoQVKVATol4:Jnc1YZrjc3Q:V_sGLiP latest?d=qj6IDK7rITs latest?i=xoQVKVATol4:Jnc1YZrjc3Q:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments