-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
114 lines (79 loc) · 3.04 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'laktak/extrakto'
set-option -g detach-on-destroy off
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-cowboy'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'catppuccin/tmux#v2.1.0'
set-option -g status-position top
set -g @catppuccin_window_status_style "basic"
set -g status-left ""
set -g status-right "#{E:@catppuccin_status_application}"
set -ag status-right "#{E:@catppuccin_status_session}"
set -ag status-right "#{E:@catppuccin_status_uptime}"
set -g @catppuccin_window_current_text " #W"
set -g @catppuccin_window_text " #W"
set -g @catppuccin_window_default_text " #W"
set -g status-right-length 100
set -g status-left-length 100
set-option -sa terminal-overrides ',xterm-256color:RGB'
set-option -sa terminal-overrides ',xterm-256color:Tc'
set-option -g renumber-windows on
set-option -sa terminal-overrides ',alacritty:RGB'
set-option -sa terminal-overrides ',alacritty:Tc'
set-option -g prefix C-x
unbind-key C-x
bind-key C-x send-prefix
bind-key x kill-pane
set -g base-index 1
setw -g mode-keys vi
bind -n C-1 previous-window
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind P paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
setw -g mouse on
unbind -T copy-mode MouseDragEnd1Pane
unbind -T copy-mode-vi MouseDragEnd1Pane
set -s escape-time 0
set -g @continuum-restore 'on'
bind-key V split-window -v -c "#{pane_current_path}"
bind-key v split-window -h -c "#{pane_current_path}"
bind-key C-a select-pane -t :.+ \; resize-pane -Z
unbind-key c
bind-key c new-window -c "#{pane_current_path}"
# For normal monitors:
bind -r C-h resize-pane -L 10
bind -r C-l resize-pane -R 10
bind -r C-[ resize-pane -D 5
bind -r C-k resize-pane -U 5
bind-key m choose-tree -Zw "join-pane -t '%%'"
bind-key M choose-tree -Zs "join-pane -t '%%'"
bind-key b break-pane
unbind-key t
bind-key = last-window
bind-key > swap-window -t +1 \; next-window
bind-key < swap-window -t -1 \; previous-window
bind-key ! next-layout
unbind-key $
bind-key $ swap-pane -D
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
set-option -g focus-events on
is_many="if [ #{window_panes} -eq 1 ]; then exit 1; fi"
# Blink the pane border on focus?
# set-hook -g pane-focus-in 'if-shell "$is_many" "selectp -P bg=#1E1E2E; run \"sleep 0.1\"; selectp -P bg=default"'
set-option -g status "on"
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?)(diff)?$'"
bind-key C-p if-shell "$is_vim" 'send-keys C-w ,' 'select-pane -t :.-'
bind-key C-n if-shell "$is_vim" 'send-keys C-w \\;' 'select-pane -t :.+'
run '~/.tmux/plugins/tpm/tpm'
set -g pane-active-border-style bg=default,fg=#504945
set -g pane-border-style fg=#504945