-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
executable file
·92 lines (70 loc) · 2.2 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
# Set default terminal
set -g default-terminal "screen-256color"
bind -n F11 run-shell 'wmctrl -ir `xdotool getwindowfocus` -b toggle,fullscreen'
# Enable mouse
set -g mouse on
# Set new prefix hotkey
set -g prefix C-a
# Unbind default prefix hotkey
unbind C-b
# Use system clipboard
set-option -s set-clipboard on
# bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
# bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i"
# Set delay between prefix and command
set -g escape-time 3
# Removes ESC delay
set -sg escape-time 0
# Set repeat limit
set -g repeat-time 0
# Set window start index
set -g base-index 1
# Set pane start index
setw -g pane-base-index 1
# Reload conf shorcut
bind r source-file ~/.tmux.conf
# Send ctrl-a to app
bind C-a send-prefix
# Buffer
bind-key [ copy-mode
bind-key ] paste-buffer
# Spliting window
bind | split-window -h
bind - split-window -v
# Pane move keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Cycle windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Resize panes
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 5
# Status bar styling
set -g status-position top
# Pane style
setw -g pane-border-style fg=colour40,bg=colour235
setw -g pane-active-border-style fg=colour69,bg=colour235
# List of plugins
set -g @tpm_plugins ' \
caiogondim/maglev \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-pain-control \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-open \
tmux-plugins/tmux-battery \
tmux-plugins/tmux-cpu \
tmux-plugins/tmux-prefix-highlight \
'
# Last saved environment is automatically restored when tmux is started
set -g @continuum-restore 'on'
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'