nordtheme / tmux

An arctic, north-bluish clean and elegant tmux color theme.
https://www.nordtheme.com/ports/tmux
MIT License
1.07k stars 141 forks source link

Window status bar turns to white sometimes #28

Open shangsunset opened 6 years ago

shangsunset commented 6 years ago

When theres some activity in that window or when the notification bell rings, the color of the window status bar turns to white. screen shot 2018-07-03 at 10 09 53 am Switching to that window would make it go back to normal.

This is iTerm2.

cole-h commented 6 years ago

Try adding this to your .tmux.conf:

setw -g window-status-activity-attr none

Now, only the # will be shown when a window updates. This is because the default window-status-activity-attr is reverse (see: https://unix.stackexchange.com/a/120905). Another option mentioned in that answer is changing window-status-activity-fg and window-status-activity-bg.

EDIT: Apparently, this might not work in tmux 3.1b or later. See below comment for a workaround for that version: https://github.com/arcticicestudio/nord-tmux/issues/28#issuecomment-715909527.

shangsunset commented 6 years ago

Thanks for your help. 👍 Though, the theme shouldn't make the status rectangle.

cole-h commented 6 years ago

Hopefully this can be fixed in the theme itself in the future. Also, be aware the "bell" status has a reverse attr as well, so modify that as well (I'm too lazy and haven't run into it all that often, so I don't know exactly what you would need to add to your config).

yangxyo commented 4 years ago

The color of the window status bar still turns to white., when I turn iterm2 to a half screen, but in full screen it display normal. It may the width overflowed. image image image

yangxyo commented 4 years ago

Seems conflict with:

set -g monitor-activity on
monitor-activity [on | off]
Monitor for activity in the window. Windows with activity are highlighted in the status line.

Just turn it off to resolve this issue. But can I just turn it off? It will affect other things?

arcticicestudio commented 4 years ago

Like @cole-h and @yangxyo said this is a feature of tmux and by design. Maybe we can improve the style of the highlighting to something more "decent", but this way the style makes sure to draw the attention of the user and and also simply be disabled when not wanted at all.

@shangsunset Can you please try the mentioned settings to check if this removed the highlighting?

lockejan commented 3 years ago

Try adding this to your .tmux.conf:

setw -g window-status-activity-attr none

Now, only the # will be shown when a window updates. This is because the default window-status-activity-attr is reverse (see: https://unix.stackexchange.com/a/120905). Another option mentioned in that answer is changing window-status-activity-fg and window-status-activity-bg.

This option isn't valid anymore, at least for tmux 3.1b . Instead one can use setw -g window-status-activity-style none to get rid of the design breaking notification alert. A # will still be displayed next to the window title to indicate some activity.

trevarj commented 8 months ago

I believe window-status-bell-style won't work correctly with the overrides that the nord theme does, namely the powerline characters. It seems that the bell style will get immediately overwritten if you try to set it to something other than the default (reverse - the ugly white background).

However, a config that doesn't add styling to the format works:

set -g window-status-format " #I │ #W #F "
set -g window-status-current-format " #I │ #W  "
set -g window-status-style "fg=white,bg=brightblack"
set -g window-status-current-style "fg=brightblack,bg=cyan"
set -g window-status-bell-style "fg=brightblack,bg=#d08770"
set -g window-status-separator " "

image