catppuccin / tmux

💽 Soothing pastel theme for Tmux!
MIT License
1.82k stars 559 forks source link

`monitor-activity on` causes window to have wrong colors #199

Closed unindented closed 4 months ago

unindented commented 5 months ago

Is there an existing issue outlining your problem?

Describe your problem.

If you enable activity monitoring like this:

setw -g monitor-activity on

Then window status has the wrong color when there's activity.

Paste your configuration.

I verified removing all my config, and using config 3 from the README:

setw -g monitor-activity on
set -g visual-activity off

set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator "█ "
set -g @catppuccin_window_number_position "left"

set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"

set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"

set -g @catppuccin_status_modules_right "directory user host session"
set -g @catppuccin_status_left_separator  " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"

set -g @catppuccin_directory_text "#{pane_current_path}"

Attach screenshots.

activity

What tmux version are you seeing the issue on?

tmux 3.4

Any additional comments?

No response

vdbe commented 5 months ago

That is the default tmux behavior and not something that we can change easily.

For now you can set the style to none: tmux setw window-status-activity-style none then it will just display the activity icon/char (#) maybe if we rewrite build_window_format to use fg=default in build_window_format tmux setw window-status-activity-style fg=<color> will work.