-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
128 lines (109 loc) · 3.55 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
set -g activity-action other
set -g assume-paste-time 1
set -g base-index 0
set -g bell-action any
set -g default-command ""
set -g default-shell "/bin/bash"
set -g destroy-unattached off
set -g detach-on-destroy on
set -g display-time 750
set -g history-limit 2000
set -g key-table "root"
set -g lock-after-time 0
set -g lock-command "lock -np"
set -g prefix C-b
set -g prefix2 None
set -g repeat-time 500
set -g set-titles off
set -g set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
set -g silence-action other
set -g status on
set -g status-interval 15
set -g status-keys emacs
set -g focus-events on
set -sg escape-time 0
# Screen color
set -g default-terminal "screen-256color"
# Vi copy mode
set-window-option -g mode-keys vi
bind -n M-P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# Binding the vertical and horizontal split
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind _ split-window -v -f -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
unbind '"'
unbind %
bind-key Y resize-pane -x 79
bind-key y select-layout even-horizontal
# For reloading the config
bind r source-file ~/.tmux.conf
# Fast switch between panes
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
# Multiple next and previous for window changing
bind -n M-p select-window -t :-
bind -n M-n select-window -t :+
# Swapping windows
bind-key -r P swap-window -t :-
bind-key -r N swap-window -t :+
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
# Right statusbar
set -g status-position bottom
set -g status-style fg=colour223,bg=colour234
set -g status-justify left
set -g status-right-length 50
set -g status-right '\
#[fg=colour233,bg=colour234]\
#[fg=colour51,bg=colour233] Battery: #{battery_graph} #{battery_percentage} \
#[fg=colour235,bg=colour233]\
#[fg=colour221,bg=colour235] %d/%m/%y \
#[fg=colour237,bg=colour235]\
#[fg=colour41,bg=colour237] %H:%M:%S '
# Left statusbar
set -g status-left ' '
# Window status
set -g window-status-separator ' '
setw -g window-status-current-style 'fg=colour255,bg=colour236 bold'
setw -g window-status-current-format '#[fg=colour51]\
#I#[fg=colour51]: #[fg=colour51]#W#[fg=colour51]#F '
setw -g window-status-style 'fg=colour188 bg=colour233'
setw -g window-status-format ' #[fg=colour207]\
#I#[fg=colour207]: #[fg=colour207]#W#[fg=colour207]#F '
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
# Renumber
set-option -g renumber-windows on
# Customizing pane
set -g pane-border-style 'fg=colour59 bg=colour232'
set -g pane-active-border-style 'bg=colour232 fg=colour45'
set -g update-environment[0] "DISPLAY"
set -g update-environment[1] "SSH_ASKPASS"
set -g update-environment[2] "SSH_AUTH_SOCK"
set -g update-environment[3] "SSH_AGENT_PID"
set -g update-environment[4] "SSH_CONNECTION"
set -g update-environment[5] "WINDOWID"
set -g update-environment[6] "XAUTHORITY"
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
set -g word-separators " -_@"
# Messages
set -g message-style 'fg=colour232 bg=colour33 bold'
# TPM {
# List of plugins
#set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-sensible'
#set -g @plugin 'tmux-plugins/tmux-battery'
# Initialize TMUX plugin manager (keep this line at the very bottom of
# tmux.conf)
#run -b '~/.tmux/plugins/tpm/tpm'
# }