Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update powerline config from upstream

  • Loading branch information...
commit 2da753a7d45357b79f7db363c5efcd59312b80ae 1 parent b8ceee4
John Whitley authored
Showing with 12 additions and 8 deletions.
  1. +12 −8 .tmux.conf
20 .tmux.conf
View
@@ -65,18 +65,22 @@ bind -n C-\ run "~/local/bin/tmux-nav-pane 'C-\\'"
bind C-l send-keys C-l
bind C-k send-keys C-k
-# powerline settings customized from:
-# ~/.vim/bundle/powerline/powerline/bindings/tmux/powerline.conf
+# # powerline settings customized from:
+# # https://github.com/Lokaltog/powerline/powerline/bindings/tmux/powerline.conf
+if-shell 'test -z "$POWERLINE_COMMAND"' 'if-shell "which powerline-client" "set-environment -g POWERLINE_COMMAND powerline-client" "set-environment -g POWERLINE_COMMAND powerline"'
set -g status on
set -g status-utf8 on
-# Powerline defaults this to 2 (secs), but this is unecessarily high IMO.
-# set -g status-interval 15
+set -g status-interval 2
set -g status-fg colour231
set -g status-bg colour234
set -g status-left-length 20
-set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold]#(powerline tmux left)'
-# This is broken right now, as the default powerline config is stupid
-# set -g status-right '#(powerline tmux right)'
+set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold]#(eval $POWERLINE_COMMAND tmux left)'
+set -g status-right '#(eval $POWERLINE_COMMAND tmux right -R pane_id=`tmux display -p "#D"`)'
set -g status-right-length 150
-set -g window-status-format "#[fg=colour244,bg=colour234]#I #[fg=colour240] #[fg=colour249]#W "
+set -g window-status-format "#[fg=colour244,bg=colour234]#I #[fg=colour240] #[default]#W "
set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I  #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
+set-window-option -g window-status-fg colour249
+set-window-option -g window-status-activity-attr none
+set-window-option -g window-status-bell-attr none
+set-window-option -g window-status-activity-fg yellow
+set-window-option -g window-status-bell-fg red
Please sign in to comment.
Something went wrong with that request. Please try again.