-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
175 lines (154 loc) · 7.69 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
set -g default-terminal "screen-256color"
set -g default-command "${SHELL}"
set -as terminal-features ",gnome*:RGB"
# renumber windows when closing other windows
set-option -g renumber-windows on
# change main binding to <C-a>
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# no window renaming
set-option -g allow-rename off
# forward/backward words
set-window-option -g xterm-keys on
# previous and next windows
bind H previous-window
bind L next-window
# reload configuration
bind r source-file ~/.tmux.conf
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
bind v split-window -h
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
# feel free to change the "1" to however many lines you want to resize by, only
# one at a time can be slow
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
# bind l to clock-mode
bind t command-prompt
# bind : to command-prompt like vim
# this is the default in tmux already
bind : command-prompt
# vi-style controls for copy mode
setw -g mode-keys vi
# in normal tmux mode
bind Escape copy-mode # `tmux prefix + Escape` starts copy mode.
bind p run-shell "tmux set-buffer \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# bind C-p run "xclip -o -sel clip | tmux load-buffer - ; tmux paste-buffer"
bind C-p run "pbpaste | tmux load-buffer - ; tmux paste-buffer"
# remove escape delay
set -sg escape-time 0
bind + delete-buffer
# in copy mode…
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'V' send -X rectangle-toggle
bind-key -Tcopy-mode-vi 'Y' send -X copy-end-of-line
# bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -i -selection clipboard"
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy"
bind-key -Tcopy-mode-vi 'h' send -X cursor-left
bind-key -Tcopy-mode-vi 'j' send -X cursor-down
bind-key -Tcopy-mode-vi 'k' send -X cursor-up
bind-key -Tcopy-mode-vi 'l' send -X cursor-right
# dracula
# set -g display-panes-active-colour colour236
# set -g display-panes-colour colour231
# set -g message-command-style fg=colour231,bg=colour17
# set -g message-style fg=colour231,bg=colour236
# set -g status-left "#[fg=colour61,bg=colour84] #S "
# set -g status-left-length 100
# set -g status-left-style fg=colour255,bg=colour61,bright
# set -g status-position bottom
# set -g status-right "#[fg=colour231,bg=colour141] #h "
# set -g status-right-length 100
# set -g status-right-style fg=colour141,bg=colour236
# set -g status-style fg=colour231,bg=colour236
# setw -g clock-mode-colour blue
# setw -g mode-style fg=black,bg=yellow
# setw -g pane-active-border-style fg=colour61
# setw -g pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default] \"#{pane_title}\""
# setw -g pane-border-style fg=colour236
# setw -g window-status-activity-style fg=colour255,bg=colour236
# setw -g window-status-current-format "#[fg=colour117,bg=colour236,bold] #I #[fg=colour141,bg=colour236,bold]| #[fg=colour117,bg=colour236,bold]#W "
# setw -g window-status-current-style fg=colour236,bg=colour141
# setw -g window-status-format "#[fg=colour231,bg=colour236] #I | #W "
# setw -g window-status-separator ""
# setw -g window-status-style fg=colour215,bg=colour236
# an-old-hope
# set -g display-panes-active-colour "#45474f"
# set -g display-panes-colour "#cbcdd2"
# set -g message-command-style fg="#cbcdd2",bg="#1c1d21"
# set -g message-style fg="#cbcdd2",bg="#45474f"
# set -g status-position bottom
# set -g status-left-length 100
# set -g status-left " #S "
# set -g status-left-style fg="#45474f",bg="#78bd65","bright"
# set -g status-right-length 100
# set -g status-right "#[fg=#4fb4d8,bg=#45474f]↑ #(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') #[fg=#ef7c2a,bg=#45474f]| #[fg=#efcd52,bg=#45474f]#(date +'%a %Y-%m-%d %H:%M %z %Z') #[fg=#ef7c2a,bg=#45474f]| #[fg=#45474f,bg=#4fb4d8] #h "
# set -g status-right-style fg="#45474f",bg="#4fb4d8"
# set -g status-style fg="#848794",bg="#45474f"
# setw -g clock-mode-colour "#4fb4d8"
# setw -g mode-style fg="#e5cd52",bg="#45474f"
# setw -g pane-active-border-style fg="#ef7c2a"
# setw -g pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default] \"#{pane_title}\""
# setw -g pane-border-style fg="#45474f"
# setw -g window-status-activity-style fg="#cbcdd2",bg="#45474f"
# setw -g window-status-current-format "#[fg=#4fb4d8,bg=#45474f,bold] #I #[fg=#ef7c2a,bg=#45474f,bold]| #[fg=#4fb4d8,bg=#45474f,bold]#W "
# setw -g window-status-format "#[fg=#cbcdd2,bg=#45474f] #I #[fg=#ef7c2a,bg=#45474f]| #[fg=#cbcdd2,bg=#45474f]#W "
# setw -g window-status-separator ""
# setw -g window-status-style fg="#eb3d54",bg="#45474f"
# an-old-hope-black
# set -g display-panes-active-colour "#000000"
# set -g display-panes-colour "#cbcdd2"
# set -g message-command-style fg="#cbcdd2",bg="#000000"
# set -g message-style fg="#cbcdd2",bg="#000000"
# set -g status-position bottom
# set -g status-left-length 100
# set -g status-left " #S "
# set -g status-left-style fg="#000000",bg="#78bd65","bright"
# set -g status-right-length 100
# set -g status-right "#[fg=#4fb4d8,bg=#000000]↑ #(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') #[fg=#ef7c2a,bg=#000000]| #[fg=#efcd52,bg=#000000]#(date +'%a %Y-%m-%d %H:%M %z %Z') #[fg=#ef7c2a,bg=#000000]| #[fg=#000000,bg=#4fb4d8] #h "
# set -g status-right-style fg="#000000",bg="#4fb4d8"
# set -g status-style fg="#848794",bg="#000000"
# setw -g clock-mode-colour "#4fb4d8"
# setw -g mode-style fg="#e5cd52",bg="#000000"
# setw -g pane-active-border-style fg="#ef7c2a"
# setw -g pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default] \"#{pane_title}\""
# setw -g pane-border-style fg="#000000"
# setw -g window-status-activity-style fg="#cbcdd2",bg="#000000"
# setw -g window-status-current-format "#[fg=#4fb4d8,bg=#000000,bold] #I #[fg=#ef7c2a,bg=#000000,bold]| #[fg=#4fb4d8,bg=#000000,bold]#W "
# setw -g window-status-format "#[fg=#cbcdd2,bg=#000000] #I #[fg=#ef7c2a,bg=#000000]| #[fg=#cbcdd2,bg=#000000]#W "
# setw -g window-status-separator ""
# setw -g window-status-style fg="#eb3d54",bg="#000000"
# set-hook -g pane-mode-changed 'if -F "#{m/r:(copy|view)-mode,#{pane_mode}}" "set -g status-left-style fg=#000000,bg=#efcd52,bright" "set -g status-left-style fg=#000000,bg=#78bd65,bright"'
# night-owl
set -g display-panes-active-colour "#C792EA"
set -g display-panes-colour "#011627"
set -g message-command-style fg="#cbcdd2",bg="#011627"
set -g message-style fg="#cbcdd2"
set -g status-position bottom
set -g status-left-length 100
set -g status-left " #S "
set -g status-left-style fg="#011627",bg="#22de6e"
set -g status-right-length 100
set -g status-right "#[fg=#02aaff]↑ #(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') #[fg=#c792ea]| #[fg=#22da6e]#(date +'%a %Y-%m-%d %H:%M %z %Z') #[fg=#c792ea]| #[fg=#011627,bg=#02aaff] #h "
set -g status-right-style fg="#011627"
set -g status-style fg="#848794"
setw -g clock-mode-colour "#02aaff"
setw -g mode-style fg="#011627",bg="#c792ea"
setw -g pane-active-border-style fg="#c792ea"
setw -g pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default] \"#{pane_title}\""
setw -g pane-border-style fg="#011627"
setw -g window-status-activity-style fg="#cbcdd2"
setw -g window-status-current-format "#[fg=#02aaff,bold] #I #[fg=#c792ea,bold]| #[fg=#02aaff,bold]#W "
setw -g window-status-format "#[fg=#cbcdd2] #I #[fg=#c792ea]| #[fg=#cbcdd2]#W "
setw -g window-status-separator ""
setw -g window-status-style fg="#ef5350"
set-hook -g pane-mode-changed 'if -F "#{m/r:(copy|view)-mode,#{pane_mode}}" "set -g status-left-style fg=#011627,bg=#22da6e,bright" "set -g status-left-style fg=#011627,bg=#22da6e,bright"'