commit f505b7658a4ae6ceb3cd58aebf5c54e0fd07196a
parent f4b17fa325d19db39df44063f3e70f94f59027a6
Author: edvb54 <edvb54@gmail.com>
Date: Fri, 6 Jun 2014 16:02:21 -0700
Change TMUX status line to vim-airline theme
Diffstat:
tmux.conf | | | 98 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------ |
1 file changed, 68 insertions(+), 30 deletions(-)
diff --git a/tmux.conf b/tmux.conf
@@ -28,6 +28,9 @@ bind-key "v" split-window -v
# use double ctrl+space to switch to last window
bind-key C-Space last-window
+# prefix r to reload this file
+bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf Reloaded"
+
# set vi mode keys
setw -g mode-keys vi
@@ -39,48 +42,83 @@ bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
-# prefix r to reload this file
-bind r source-file ~/.tmux.conf \; display-message "tmux.conf Reloaded"
-
# remap prefix to Ctrl+Space
set -g prefix C-Space
unbind C-b
#}}}
-# status{{{1
-set -g status-bg black
-
-set -g window-status-current-fg white
-set -g window-status-current-bg blue
-set -g window-status-current-attr bright
+# status old{{{1
+# set -g status-bg black
+
+# set -g window-status-current-fg white
+# set -g window-status-current-bg blue
+# set -g window-status-current-attr bright
+
+# set -g window-status-last-fg white
+# set -g window-status-last-bg default
+# set -g window-status-last-attr bright
+
+# set -g window-status-fg white
+# set -g window-status-bg default
+# set -g window-status-attr dim
+
+# set -g message-fg white
+# set -g message-bg blue
+# set -g message-attr bright
+
+# set -g status-interval 1
+# set -g status-justify centre
+# set -g status-left-length 158
+# set -g status-right-length 140
+
+# set -g status-left '\
+# #[fg=white][#[fg=blue]#S#[fg=white]]\
+# #[fg=white][#[fg=cyan]#{pane_current_path}#[fg=white]]\
+# '
+# set -g status-right '\
+# #[fg=white][#[fg=cyan]#H#[fg=white]]\
+# #[fg=white][#[fg=blue]%a%l:%M#[fg=white]]\
+# '
-set -g window-status-last-fg white
-set -g window-status-last-bg default
-set -g window-status-last-attr bright
-
-set -g window-status-fg white
-set -g window-status-bg default
-set -g window-status-attr dim
+#}}}
+# status new{{{
+# This tmux statusbar config was created by tmuxline.vim
+set -g status-justify centre
+set -g status on
+set -g status-bg black
+set -g status-utf8 on
+set -g status-right-length 100
+set -g status-left-length 100
+setw -g window-status-activity-attr none
+setw -g window-status-separator ""
set -g message-fg white
set -g message-bg blue
-set -g message-attr bright
-set -g status-interval 1
-set -g status-justify centre
-set -g status-left-length 158
-set -g status-right-length 140
-
-set -g status-left '\
-#[fg=white][#[fg=blue]#S#[fg=white]]\
-#[fg=white][#[fg=cyan]#{pane_current_path}#[fg=white]]\
-'
-set -g status-right '\
-#[fg=white][#[fg=cyan]#H#[fg=white]]\
-#[fg=white][#[fg=blue]%a%l:%M#[fg=white]]\
-'
+set -g status-left "\
+#[fg=colour15,bg=colour14,bold] #S #[fg=colour14,bg=colour11,nobold,nounderscore,noitalics]\
+#[fg=colour7,bg=colour11] #{pane_current_path} #[fg=colour11,bg=colour0,nobold,nounderscore,noitalics]\
+"
+
+set -g status-right "\
+#[fg=colour11,bg=colour0,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] %l:%M \
+ %a %d #[fg=colour14,bg=colour11,nobold,nounderscore,noitalics]\
+#[fg=colour15,bg=colour14] #h \
+"
+
+setw -g window-status-format "\
+#[fg=colour10,bg=colour0] #I \
+#[fg=colour10,bg=colour0] #W \
+"
+
+setw -g window-status-current-format "\
+#[fg=colour0,bg=colour11,nobold,nounderscore,noitalics]#[fg=colour7,bg=colour11] #I \
+#[fg=colour7,bg=colour11] #W #[fg=colour11,bg=colour0,nobold,nounderscore,noitalics]\
+"
#}}}
# start window numbering at 1, not 0
set -g base-index 1
+set -g mode-mouse on
+