-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
153 lines (118 loc) · 5 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
set -g default-terminal "tmux-256color"
set -g prefix C-a
unbind-key C-b
set -s escape-time 1
set -g base-index 1
setw -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind C-a send-prefix
# change bind | split-window -h
bind "#" split-window -h
bind - split-window -v
unbind-key %
# run-shell ~/clone/path/resurrect.tmux
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
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 6
set -g default-terminal "screen-256color"
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
# set-option -g status-attr default
# set focus-events so 'autoread' works
set-option -g focus-events on
# window status
setw -g window-status-format " #F#I:#W#F "
setw -g window-status-current-format " #F#I:#W#F "
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=white] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=white] #I #[fg=white]#[bg=cyan] #W "
setw -g window-status-current-style bg=black,fg=yellow,dim
setw -g window-status-style bg=green,fg=black,reverse
#set-window-option -g window-status-fg colour235#base0
#set-window-option -g window-status-bg default
#set-window-option -g window-status-current-fg colour166 #orange
#set-window-option -g window-status-current-bg default
# set-option -g pane-border-fg colour235#base02
# set-option -g pane-active-border-fg colour240 #base01
#set -g message-style bg=black,fg=orange
# message text
set-option -g message-style bg=colour235,fg=colour166 # bg=base02, fg=orange
# set-option -g message-fg colour166 #orange
# The panes
set -g pane-border-style bg=black,fg=black
set -g pane-active-border-style fg=blue,bg=brightblack
# messaging
set -g message-command-style fg=blue,bg=black
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
set-window-option -g clock-mode-colour colour64 #green
set -g status-left-length 40
set -g status-left "#[fg=green]kali: #S #[fg=yellow]#I #[fg=cyan]#P"
set -g status-right "#[fg=cyan]%d %b %R"
set -g status-justify centre
set -g monitor-activity on
set -g visual-activity on
set-window-option -g mode-keys vi
set -g history-limit 100000
set -g history-file ~/.tmux_history
set -g mouse on
# bind CtlA f to fzf list of sessions which you can pick and switch to
bind-key C-f run-shell "tmux list-sessions -F \"##S\" | fzf-tmux | xargs tmux switch -t"
# in tmux copy mode use system clipboard via zsel
unbind -T copy-mode-vi Space; #Default for begin-selection
unbind -T copy-mode-vi Enter; #Default for copy-selection
bind-key [ copy-mode
bind-key -T copy-mode-vi v send-keys -X begin-selection
#bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel --clipboard" \; display-message "copied to clipboard"
bind-key -T copy-mode-vi y send-keys -X copy-pipe "xsel -i -p" \; display-message "Copied to selection"
bind-key -T copy-mode-vi Y send-keys -X copy-pipe "xclip -selection clipboard" \; display-message "Copied to clipboard"
unbind-key C-p
bind-key C-p run-shell "xsel -o -p | tmux load-buffer - && tmux paste-buffer"
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-style fg=yellow,bg=black #yellow and base02
# default window title colors
set-window-option -g window-status-style fg=brightblue,bg=default #base0 and default
#set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default #orange and default
#set-window-option -g window-status-current-style bright
# pane border
set-option -g pane-border-style fg=black #base02
set-option -g pane-active-border-style fg=brightgreen #base01
# message text
set-option -g message-style fg=brightred,bg=black #orange and base01
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# fix cursor block to pipe in Norm to Copy mode
set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
# fixn true colour capability
set-option -sa terminal-overrides ',:screen-256color:RGB'
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'laktak/extrakto'
set -g @plugin 'tmux-plugins/tmux-copycat'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# to stop $DISPLAY being reset???
set -g @continuum-boot 'off'
# "$DISPLAY" > ~/.display.txt
# alias up_disp='export DISPLAY=`cat ~/.display.txt`'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'