/
.tmux.conf
99 lines (77 loc) · 3.1 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Tab start index
set -g base-index 1
set -g history-limit 8000
set -g escape-time 0
set -g mouse on
# Use Control-a as the prefix.
unbind C-b
set -g prefix C-a
# -----------------------------------------------------------------------------
# Status bar
# -----------------------------------------------------------------------------
# Statusbar left: user@host
set -g status-left '#(whoami)@#H '
# Statusbar right: artist+track, unread mail
set -g status-right '#[fg=colour67]♫ #(cat ~/.cmus/now-playing.txt) #[fg=colour137]✉ #(~/dotfiles/bin/gmail)'
set -g status-right-length 100
set -g window-status-format '#I:#W#{?pane_synchronized,S,}#{?window_flags,#F, }'
set -g window-status-current-format '#I:#W#{?pane_synchronized,S,}#{?window_flags,#F, }'
# -----------------------------------------------------------------------------
# Keybindings
# -----------------------------------------------------------------------------
# Logical split keybindings
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
# Window navigation
bind-key Space last-window
bind-key -n C-left previous-window
bind-key -n C-right next-window
# Control-shift is broken in tmux 1.9a, so use Alt instead.
bind-key -n M-left swap-window -t -1
bind-key -n M-right swap-window -t +1
bind-key -n C-up new-window
bind-key -n C-down last-window
bind-key -n S-up select-pane -U
bind-key -n S-down select-pane -D
bind-key -n S-left select-pane -L
bind-key -n S-right select-pane -R
bind-key C-a next-window
bind-key a previous-window
bind-key l clear-history
bind-key < command-prompt "swap-window -t '%%'"
# Copy/paste tmux clipboard <-> system clipboard
bind-key C-s run-shell "tmux save-buffer - | copy"
bind-key C-v run-shell "tmux set-buffer -- \"$(_copy_paste.sh)\"; tmux paste-buffer"
# Reload tmux.conf file.
bind-key R source-file ~/.tmux.conf
bind-key S setw synchronize-panes
# -----------------------------------------------------------------------------
# Theme
# -----------------------------------------------------------------------------
# default statusbar
set-option -g status-bg default
set-option -g status-fg colour153
set-option -g status-attr default
# default window
set-window-option -g window-status-fg colour244
set-window-option -g window-status-bg default
set-window-option -g window-status-attr default
# active window
set-window-option -g window-status-current-fg colour221 #colour136 #yellow
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg colour255
set-option -g pane-border-bg colour233
set-option -g pane-active-border-fg colour125
set-option -g pane-active-border-bg colour125
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
set -g default-terminal "tmux-256color"