-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
78 lines (62 loc) · 1.88 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
# Source-file binding
unbind r
bind r source-file ~/.tmux.conf
# Prefix
set -g prefix C-w
# Some configs
set -g mouse on
set -g escape-time 0
set -g status-interval 5
set -g history-limit 100000
set -g status-position top
set -ga terminal-overrides ',xterm-256color:Tc'
# Options
set-option -g focus-events on
set-option -g allow-rename on
set-option -g renumber-windows on
set-option -sa terminal-features ',tmux-256color:RGB'
set-option focus-events
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
# Vi mode
set -g mode-keys vi
# New windows
bind-key c new-window -c 'cd'
# Open panes in current directory
bind b split-window -v -c '#{pane_current_path}'
bind p split-window -h -c '#{pane_current_path}'
# Resize panes
bind-key -r H resize-pane -L 4
bind-key -r J resize-pane -D 4
bind-key -r K resize-pane -U 4
bind-key -r L resize-pane -R 4
# My preferences
bind-key x kill-pane
bind-key f run-shell -b '~/dotarch/accessories/session-finder.sh'
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tribhuwan-kumar/Artimux'
set -g @plugin 'christoomey/vim-tmux-navigator'
# Artimux theme
set -g @Artimux_show_time 'true'
set -g @Artimux_time_format '12HR'
set -g @Artimux_show_netspeed 'true'
set -g @Artimux_netspeed_iface 'wlan0'
set -g @Artimux_show_battery 'true'
# Tmux sessions manager
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Nvim state restore
set -g @resurrect-strategy-nvim 'session'
# Continuum
set -g @continuum-restore 'on'
set -g @continuum-save-interval '2'
# Yank keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'