-
Notifications
You must be signed in to change notification settings - Fork 9
/
tmux.conf
71 lines (52 loc) · 2.06 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
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'aserowy/tmux.nvim'
set -g @plugin 'catppuccin/tmux#v0.3.0'
set -g default-terminal "$TERM"
set -ag terminal-overrides ",$TERM:Tc"
set -g history-limit 10000
set -g default-command "reattach-to-user-namespace -l $SHELL"
# Ctrl-a instead of Ctrl-b
set -g prefix C-a
bind C-a send-prefix
set -g mouse on
# Copy mode
setw -g mode-keys vi
bind Escape copy-mode
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle
# layout
bind M-- select-layout "even-vertical"
bind M-| select-layout "even-horizontal"
bind M-r rotate-window
# select-window with fzf
unbind-key /
bind-key / display-popup -E "tmux list-windows -F '#{window_index}: #{window_name}' | fzf --reverse | gsed -E 's/:\s.*$//' | xargs -r tmux select-window -t"
# re-number windows when one is closed
# set -g renumber-windows on
# Edit tmux pane buffer in Neovim!
bind-key e send-keys "tmux capture-pane -p -S - | nvim -c 'set buftype=nofile' +" Enter
set -g @tmux-nvim-resize-step-x 5
set -g @tmux-nvim-resize-step-y 5
# Customize status line
set -g status-position top
gray_color="#3b3f4c"
green_color="#98c379"
set -g @catppuccin_pane_border_style "fg=$gray_color"
set -g @catppuccin_pane_active_border_style "fg=$green_color"
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"
set -g @catppuccin_status_modules_right "application date_time session"
set -g @catppuccin_status_left_separator " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"
run '~/.tmux/plugins/tpm/tpm'