Window status bar turns to white sometimes
shangsunset opened this issue ยท 8 comments
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: #28 (comment).
Thanks for your help. ๐ Though, the theme shouldn't make the status rectangle.
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).
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?
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?
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 changingwindow-status-activity-fg
andwindow-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.
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 " "