Last Updated: September 09, 2019
·
26.6K
· ndyag

Customize your Tmux

Picture

Tmux 1.8 let's you place the status bar on top. It's really great.

Open your ~/.tmux.conf and edit it (copy part of following as you like)

To add volume and battery icons to the status bar, you should install amixer and acpi first.

# change key binding from C-b to Emacs style C-x
set-option -g prefix C-x
unbind-key C-b
bind-key C-x send-prefix

# interface
#------------
# pane
#------------
set -g mouse-select-pane on
set -g pane-border-fg black
set -g pane-active-border-fg blue

#------------
# tabs
#------------
setw -g window-status-format "#[fg=white]#[bg=blue] #I #[bg=blue]#[fg=white] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=white] *#I #[fg=white,bold]#[bg=cyan] [#W] "
setw -g window-status-content-attr bold,blink,reverse

#------------
# status bar
#------------
set-option -g status-position top
set -g status-fg white
set -g status-bg blue
set -g status-left ''
set -g status-right-length 60
set -g status-right '♪ #(exec amixer get Master | egrep -o "[0-9]+%" | egrep -o "[0-9]*") | ♥#(acpi | cut -d ',' -f 2) | %a %m-%d %H:%M'

View the file

2 Responses
Add your response

These are some really nice tips. <br/>
It would be helpful if you've explained which file to edit / how to integrate them.

over 1 year ago ·

That's useful :)
One question what the name of your Terminal color scheme. it looks gorgeous.

over 1 year ago ·