The man page has a very detailed description of all the various parameters (the status bar is customizable). It is best to read man tmux and pay particular attention to those parameters that begin with status- .
So, for example, status-bg red set the background color on the panel.
The three panel components, the left and right sections and the window list in the middle can be customized to your preference. status-left and status-right , in addition to having their own variables (for example, #S to display the session name), can also call custom scripts to display, for example, system information, such as average load or battery life.
The ability to rename windows or panels based on what is currently running on them is automatic-rename . You can install or disable it globally:
setw -g automatic-rename [on | off]
The easiest way to simplify creating your own status bar is to start with vanilla, and then add the changes step by step, reloading the configuration when you go. one
You can also take a look around on github or bitbucket for other conf conf files to provide some inspiration. You can see mine here 2 .
1 You can automate this by including this line in your .tmux.conf :
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
You can then test your new features with Ctrl b , Shift r . tmux print a useful error message - including the line number of the chipper - if you configure the parameter incorrectly.
2 Note. I call another status bar depending on whether I am in X or the console - I find this very useful.
jasonwryan Mar 09 '12 at 7:21 2012-03-09 07:21
source share