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.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

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

Okay