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?
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?