DEV Community

Marcin Wosinek
Marcin Wosinek

Posted on

2 2

How to display simple, symmetric status bar in tmux

If you spend a lot of time in tmux you will probably like to replace the default status bar:
Alt Text

with something custom - for example something like this:
Alt Text

Configuration

To achieve this, you can copy to your ~/.tmux.conf following configuration:

set-option -g status on    
set-option -g status-interval 2    
set-option -g status-justify "centre"    
set-option -g status-left-length 60    
set-option -g status-right-length 90    

set -g status-right '[#S]'    
Enter fullscreen mode Exit fullscreen mode

The result

With the configuration in place, the tmux status bar looks like:
Alt Text

The color is more vibrant than in the example above - where I had seebi/tmux-colors-solarized applied. If you are interested in an article how to set it up, let me know in the comments.

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay