-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtmux.conf.symlink
143 lines (116 loc) · 5 KB
/
tmux.conf.symlink
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
132
133
134
135
136
137
138
139
140
141
142
143
set -g mouse on
#set-option -g mouse-select-pane on
#set-option -g mouse-select-window on
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
#unbind r
#bind r source-file ~/.tmux.conf\; display "tmux reloaded!"
setw -g mode-keys vi
# Set that stupid Esc-Wait off, so VI works again
set-option -sg escape-time 0
# All kind of nice options
set-option -g bell-action any
set-option -g default-terminal "screen-256color"
set-option -g history-limit 100000
set-option -g repeat-time 500
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g set-titles on
set-option -g set-titles-string ' #S[#I] - #T '
set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-option -g base-index 1
set-option -g update-environment -r
# Window options
set-window-option -g monitor-activity on
set-window-option -g xterm-keys on
set-window-option -g automatic-rename on
set-window-option -g aggressive-resize off
set-window-option -g pane-base-index 1
# Remap keys to my settings
unbind-key d ; bind-key d detach-client
# unbind-key Tab ; bind-key Tab choose-window
unbind-key t ; bind-key t new-window
unbind-key ` ; bind-key ` last-window
unbind-key n ; bind-key n next-window
unbind-key p ; bind-key p previous-window
# Window selection
unbind-key 1 ; bind-key 1 select-window -t 1
unbind-key 2 ; bind-key 2 select-window -t 2
unbind-key 3 ; bind-key 3 select-window -t 3
unbind-key 4 ; bind-key 4 select-window -t 4
unbind-key 5 ; bind-key 5 select-window -t 5
unbind-key 6 ; bind-key 6 select-window -t 6
unbind-key 7 ; bind-key 7 select-window -t 7
unbind-key 8 ; bind-key 8 select-window -t 8
unbind-key 9 ; bind-key 9 select-window -t 9
unbind-key 0 ; bind-key 0 select-window -t 10
unbind-key M-1 ; bind-key -n M-1 select-window -t 1
unbind-key M-2 ; bind-key -n M-2 select-window -t 2
unbind-key M-3 ; bind-key -n M-3 select-window -t 3
unbind-key M-4 ; bind-key -n M-4 select-window -t 4
unbind-key M-5 ; bind-key -n M-5 select-window -t 5
unbind-key M-6 ; bind-key -n M-6 select-window -t 6
unbind-key M-7 ; bind-key -n M-7 select-window -t 7
unbind-key M-8 ; bind-key -n M-8 select-window -t 8
unbind-key M-9 ; bind-key -n M-9 select-window -t 9
unbind-key M-0 ; bind-key -n M-0 select-window -t 10
bind -n M-H resize-pane -L 5
bind -n M-J resize-pane -D 5
bind -n M-K resize-pane -U 5
bind -n M-L resize-pane -R 5
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
# Hack to get pbcopy to work
# See: http://superuser.com/questions/231130/unable-to-use-pbcopy-while-in-tmux-session
# set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# Zoom tmux pane with '+' key
# bind + resize-pane -Z
# move status to top
# set-option -g status-position top
# clipboard fix
set -g default-shell $SHELL
# Color key (Dracula Theme):
# #282a36 Background
# #44475a Current Line
# #44475a Selection
# #f8f8f2 Foreground
# #6272a4 Comment
# #ff5555 Red
# #ffb86c Orange
# #f1fa8c Yellow
# #50fa7b Green
# #8be9fd Cyan
# #81a2be Blue
# #bd93f9 Purple
## set status bar
set -g status-bg default
setw -g window-status-current-style bg="#44475a",fg="#81a2be"
## pane border and colors
set -g pane-active-border-style bg=default,fg="#44475a"
set -g pane-border-style bg=default,fg="#44475a"
set -g clock-mode-colour "#81a2be"
set -g clock-mode-style 12
set -g message-command-style bg="#8be9fd",fg="#000000"
# message bar or "prompt"
set -g message-style bg="#2d2d2d",fg="#cc99cc"
set -g mode-style bg="#282a36",fg="#ffb86c"
# empty left side of status bar
set-option -g status-left ''
# right side of status bar holds "Battery (date time) Whoami"
set -g status-right length=100
set -g status-right fg=black
set -g status-right bold
set -g status-right "#[fg=#6699cc,bg=#2d2d2d] Battery: #(pmset -g batt | grep InternalBattery | awk '{print $3}' | sed 's/;/ /g') #[fg=#f99157]| %a %m/%d/%Y %H:%M |#[fg=#dddddd] #S "
# make background window look like white tab
#set-window-option -g window-status-style bg=default,fg=white
#set-window-option -g window-status-style none
set-window-option -g window-status-format '#[fg=#6699cc,bg=colour235] #I #[fg=#999999,bg=#2d2d2d] #W #[default]'
# make foreground window look like bold yellow foreground tab
#set-window-option -g window-status-current-style none
set-window-option -g window-status-current-format '#[fg=#f99157,bg=#2d2d2d] #I #[fg=#cccccc,bg=#393939] #W #[default]'
# active terminal yellow border, non-active white
# set -g pane-border-style bg default
# set -g pane-border-style fg "#999999"
# set -g pane-active-border-style fg "#f99157"