-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_tmux.conf
86 lines (66 loc) · 2.5 KB
/
dot_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
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",alacritty:RGB,xterm-256color:RGB,gnome*:RGB"
# For autoread
set -g focus-events on
# make teemacs t-vim
setw -g mode-keys vi
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
if-shell "uname | grep -q Darwin" "source-file ~/.tmux.mac.conf" "source-file ~/.tmux.linux.conf"
bind-key -Tcopy-mode-vi Escape send -X cancel
unbind p
bind p paste-buffer
unbind -Tcopy-mode-vi Enter
# system clipboard Linux
# bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
# synchronize panes toggle for simultanously applying the same command in multiple panes
bind C-s set-window-option synchronize-panes
# Bind to reload configuration on the fly with Prefix-r
bind r source-file ~/.tmux.conf \; display "Configuration reloaded!"
# New panes / windows should start in a directory where we left off
# The default behaviour is starting where the tmux originally started.
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# movement between panes with Vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# movement between windows
# -r stands for `repeatable`, so Prefix need to be activated only once
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
# Neovim Health Check wants this
set-option -sg escape-time 10
# theme / style
# pane borders
# setw -g pane-border-style fg=green,bg=black
# setw -g pane-active-border-style fg=white,bg=yellow
# dim the unused panes
setw -g window-style fg=colour240,bg=colour235
setw -g window-active-style fg=white,bg=black
# message styles, e.g. after reload
set -g message-style fg=black,bold,bg=yellow
# status
set -g status-style fg=white,bold,bg=black
set -g status-left "#[fg=green] #S #[fg=yellow]#I #[fg=cyan]#P "
set -g status-right-length 200
set -g status-justify centre
set -g status-interval 60
setw -g window-status-style fg=cyan,bg=black
setw -g window-status-current-style fg=black,bg=green
# opacity
set-option -g status-style bg=default
# setw -g window-style fg=colour240,bg=colour235
# setw -g window-active-style fg=white,bg=black
set-option -g window-style bg=default
set-option -g window-active-style bg=default
# plugins
set -g @plugin 'tmux-plugins/tpm'
# HERE BE DRAGONS! Has to be at the bottom!
run -b '~/.tmux/plugins/tpm/tpm'