-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
80 lines (62 loc) · 2.91 KB
/
Copy pathtmux.conf
File metadata and controls
80 lines (62 loc) · 2.91 KB
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
# Bind C-o since emacs uses C-a and C-b
set -g prefix C-o
# Start numbering at 1
set -g base-index 1
setw -g pane-base-index 1
# Allows for faster key repetition
set -s escape-time 0
######################
### DESIGN CHANGES ###
######################
# loud or quiet?
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
# modes
setw -g clock-mode-colour '#5fafaf'
setw -g mode-style 'fg=#1a1a2e bg=#5fafaf bold'
# panes — show running command on border
set -g pane-border-status top
set -g pane-border-format ' #{pane_index}: #{pane_current_command} #{b:pane_current_path} '
set -g pane-border-style 'fg=#1a1a2e bg=#4a8a8a'
set -g pane-active-border-style 'fg=#1a1a2e bg=#5fafaf bold'
# statusbar (powerline style — requires Nerd Font)
set -g status-position bottom
set -g status-justify left
set -g status-style 'bg=#1a1a2e fg=#a0a0a0'
set -g status-left '#[fg=#1a1a2e,bg=#5fafaf,bold] #S #[fg=#5fafaf,bg=#1a1a2e] '
set -g status-right '#[fg=#3a3a3a,bg=#1a1a2e]#[fg=#a0a0a0,bg=#3a3a3a] #(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "-") #[fg=#444444,bg=#3a3a3a]#[fg=#a0a0a0,bg=#444444] #(~/.dotfiles-tmux/cpu.sh) #(~/.dotfiles-tmux/battery.sh)#[fg=#e5c07b,bg=#444444]#[fg=#1a1a2e,bg=#e5c07b,bold] %H:%M '
set -g status-right-length 120
set -g status-left-length 30
# Window tabs (powerline arrows)
setw -g window-status-current-style 'fg=#1a1a2e bg=#5fafaf bold'
setw -g window-status-current-format '#[fg=#1a1a2e,bg=#5fafaf]#[fg=#1a1a2e,bg=#5fafaf] #I:#W:#{b:pane_current_path}#F #[fg=#5fafaf,bg=#1a1a2e]'
setw -g window-status-style 'fg=#808080 bg=#1a1a2e'
setw -g window-status-format ' #I:#W:#{b:pane_current_path}#F '
setw -g window-status-bell-style 'fg=#ffffff bg=#e06c75 bold'
setw -g window-status-separator ''
# messages
set -g message-style 'fg=#2e2e2e bg=#e5c07b bold'
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Renumber windows automatically
set-option -g renumber-windows on
# Mouse mode!
set -g mouse on
# Copy mode — vi keys, clipboard integration
# Use prefix+[ to enter copy mode (respects pane boundaries unlike terminal select)
# v to start selection, y to yank to system clipboard, Escape to cancel
setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# Reload tmux.conf
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'