'How to hide window list in tmux status bar?
How can I remove the list of tmux windows from the status bar. In this case I want to get rid of (see lower left) 1:zsh*
.
I tried in .tmux.conf the following
set -g status-style nolist
but it did not work. I do not want to get rid of the whole status bar, only the list of windows.
Solution 1:[1]
In ~/.tmux.conf
, add the following:
set -g window-status-current-format ''
set -g window-status-format ''
Full credit goes to this reddit comment.
Minimal tmux screens
Users may want to hide their list of open windows for many reasons, but one of them may be to completely remove, or minimise heavily, the tmux status line. I had to do this when using tmux on a VT220 (and later, VT510) display, which are CRTs that can suffer from burn-in.
In order to only display the current time and date in the tmux status, I set the following lines:
# Remove left status, set right status formatted per https://man.openbsd.org/strftime.3
set -g status-right "%H%M %d %b"
set-option -g status-left ""
# No colours in the status line
set -g status-bg black
set -g status-fg white
# No window list
set -g window-status-current-format ''
set -g window-status-format ''
Solution 2:[2]
You can change status-format[0] to remove the entire window list section (the bit between the styles containing list=on and nolist).
Alternatively you could set all of window-status-format, window-status-current-format, window-status-separator to empty strings.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Nicholas Marriott |