-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
131 lines (104 loc) · 4.02 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# set vi mode
setw -g mode-key vi
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# bind r to reloading the config file
bind r source-file ~/.tmux.conf \; display "Reloaded tmux config file."
# use sensible terminal
set -g default-terminal "xterm-256color"
# if we use a solarized palette for the terminal emulator use 16
# colours as those actually match already solarized colours
set -g default-terminal "xterm"
# enable wm window titles
set -g set-titles on
# Window activity monitor
setw -g monitor-activity on
set -g visual-activity on
# Start numbering with 1 ie like XFWM
set -g base-index 1
# setw -g pane-base-index 1
# # wm window title string (uses statusbar variables)
set -g set-titles-string "#H: [#S] #I,#P (#W)"
# Shift arrow to switch windows
# normal mode => no prefix
bind -n S-Left previous-window
bind -n S-Right next-window
# Theming for ancient tmux similar to solarize
# default statusbar colors
set-option -g status-bg white #base2
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg yellow #base00
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg red #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg white #base2
set-option -g pane-active-border-bg blue #base1
set-option -g pane-active-border-fg white #base1
# message text
set-option -g message-bg white #base2
set-option -g message-fg red #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour red #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
### set-window-option -g window-status-bell-style fg=white,bg=red #base2, red
## # Mouse mode requires quite new tmux
## set -g mouse-mode on
## set -g mouse-resize-pane on
## set -g mouse-select-pane on
# This would disables mouse copy & paste!
## set -g mouse-select-window on
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Resize panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
# needs tmux v 1.8
# is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
# bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
# bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
# bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
# bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
# bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
set -g status-left-length 32
set -g status-right-length 150
set -g status-fg white
set -g status-bg colour234
# set -g window-status-activity-attr bold
## set -g pane-border-fg colour245
## set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #I,#P #[fg=colour252,bg=colour238,nobold]⮀'
set -g status-right '⮂#[fg=colour235,bg=colour252,bold] [#H] %a, %d %b, %R | #(whoami) '
### set -g window-status-format "#[fg=white,bg=colour234] #I #W "
### set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
set -g status-utf8 on
set -g status-interval 60
setw -g monitor-activity on
set -g visual-activity on
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# set -g status-justify left
set -g status-justify centre