Skip to content

Instantly share code, notes, and snippets.

@gldr
Created April 27, 2012 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gldr/2509188 to your computer and use it in GitHub Desktop.
Save gldr/2509188 to your computer and use it in GitHub Desktop.
tmux custom status bar
set-option -g terminal-overrides '*:enacs@:smacs@:rmacs@:acsc@'
set -g status-bg black
set -g status-fg white
set -g status-left "#[fg=green]#H"
# Statusbar starting in X or not
if '[ -n "$DISPLAY"]' 'source-file ~/.tmux/inx'
if '[ -z "$DISPLAY"]' 'source-file ~/.tmux/xless'
Create folder in the directory you're going to be running tmux in /home/user/.tmux/ - move inx/xless in .tmux folder - copy contents of .tmux.conf into your current .tmux.conf (I'd suggest overwriting all of it if you'd want what I currently have)
# Statusbar if tmux runs in X
#
set -g status-attr bright
set -g status-right-length 40
set -g status-left-length 40
set -g status-left '#[fg=blue]#H #[fg=black,bright]#[fg=green]#(uname -r)#[default]'
set -g status-right '#[fg=cyan] #(uptime | cut -d " " -f4-5 | cut -d"," -f1) #[fg=black,bright] #[fg=magenta]#(cut -d " " -f1-3 /proc/loadavg)'
# Statusbar if tmux run in console
# information normally in dwm bar
set -g status-attr bright
set -g status-right-length 50
set -g status-left-length 50
# default window title colors
set-window-option -g window-status-fg white
set-window-option -g window-status-bg default
set-window-option -g window-status-attr bright
set-window-option -g window-status-current-fg red
# message colours
set -g message-fg white
set -g message-attr bright
set -g status-left "#[fg=blue] #H #[fg=black]"
set -g status-right "#[fg=black] #[fg=white]#(awk \'{ print $1,$2,$3 }\'</proc/loadavg)#[fg=black] #[fg=cyan]%I:%M:%S %p #[default] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment