-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
74 lines (58 loc) · 2.05 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
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'niqodea/tmux-matryoshka'
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
# auto window rename
set-window-option -g automatic-rename
set -g @plugin 'catppuccin/tmux#v2.1.2'
set -g @catppuccin_flavor 'mocha'
set -g @catppuccin_window_current_text "#{window_name}"
set -g @catppuccin_window_default_text "#{window_name}"
set -g @catppuccin_window_text "#{window_name}"
set -g @matryoshka_inactive_status_style_strategy 'sed'
set -g @matryoshka_inactive_status_style 's/181825/45475a/g;'
set -g status-right-length 100
set -g status-left-length 100
set -g status-left ""
set -g status-right ""
set -g mouse on
# Start numbering at 1
set -g base-index 1
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# don't suspend-client
unbind-key C-z
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
bind-key C-r source-file ~/.tmux.conf\; display-message "Config reloaded..."
# short cut to toggle synchronized panes and update status line
bind e \
set synchronize-panes \;\
refresh-client -S
setw -g mode-keys vi
unbind [
bind Escape copy-mode
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind -T copy-mode-vi y send-keys -X copy-selection
bind P paste-buffer
# Same screen's shortcut
bind-key A command-prompt 'rename-window %%'
# horizontal split #
bind-key S split-window -v -c "#{pane_current_path}"
bind-key h split-window -v -c "#{pane_current_path}"
# vertical split #
bind-key | split-window -h -c "#{pane_current_path}"
bind-key v split-window -h -c "#{pane_current_path}"
# Resize shorcut
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
# ===================
# === Ending ===
# ===================
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
set -g @plugin 'tmux-plugins/tpm'
run -b '~/.tmux/plugins/tpm/tpm'