-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
151 lines (120 loc) · 5.23 KB
/
.tmux.conf
File metadata and controls
151 lines (120 loc) · 5.23 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
set-option -g allow-rename off
set-option -g prefix `
set-option -g prefix2 M-Space
set-option -g status-bg colour235
set-option -g status-fg colour136
set -g @fpp-key 'f'
set -g @fpp-path '/opt/homebrew/bin/fpp'
set -g base-index 1
set -g default-terminal "xterm-256color"
set -g display-time 4000
set -g focus-events on
set -g history-limit 250000
set -g mouse off
set -g pane-base-index 1
set -g visual-activity on
set -g word-separators ' @"=()[]{}.,/'
set -g xterm-keys on
set -sg escape-time 0
setw -g aggressive-resize off
setw -g alternate-screen on
setw -g mode-keys vi
setw -g monitor-activity off
unbind -n C-b
unbind -n C-j
unbind -n C-k
unbind -n Pageup
unbind -n Pagedown
unbind -n z
bind-key ` send-prefix
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind S setw synchronize-panes
bind a setw monitor-activity
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
unbind-key -T copy-mode-vi v
bind u run ~/bin/tmux-url-select.pl
bind-key -T copy-mode-vi 'v' send -X rectangle-toggle
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
bind-key -Tcopy-mode-vi M-s send-keys Pageup
bind-key -Tcopy-mode-vi M-d send-keys Pagedown
bind n command-prompt "rename-window '%%'"
bind -n M-o split-window -c "#{pane_current_path}"
bind -n M-i split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind Tab next-window
bind -n M-e next-window
bind -n M-n next-window
bind -n M-q previous-window
bind -n M-N previous-window
bind-key m choose-window 'join-pane -t "%%"'
# Park and unpark window shortcuts
# M-A parks current window, or unparks the first window from parking
bind -n M-A run -b 'if [ "#{session_name}" = "parking" ]; then first_window=`tmux list-windows -t parking -F "#{window_index}" | head -1`; next_index=`tmux list-windows -t 0 -F "#{window_index}" | tail -1 | awk "{print \\$1+1}"`; [ -n "$first_window" ] && tmux move-window -s "parking:$first_window" -t "0:$next_index" && tmux switch-client -t "0:$next_index"; else tmux new-session -d -s parking 2>/dev/null; tmux move-window -s "#{session_name}:#{window_index}" -t "parking"; fi'
# M-a switches between session 0 and parking
bind -n M-a run -b 'if [ "#{session_name}" = "parking" ]; then tmux switch-client -t 0; else tmux switch-client -t parking; fi'
bind -n M-= select-layout even-vertical
bind -n M-_ select-layout even-vertical
bind-key / copy-mode \; send-key ?
bind-key -n M-x copy-mode
bind-key -n M-s copy-mode\; send-keys Pageup
bind-key -n M-d copy-mode\; send-keys Pagedown
bind-key -n M-z resize-pane -Z
bind-key Space resize-pane -Z
bind-key M-Space resize-pane -Z
bind | select-layout even-horizontal
bind -n M-w select-pane -U\; resize-pane -Z
# bind -n M-e copy-mode \; send -X search-backward "Traceback"\; #send-keys -X -N 10 scroll-down
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
bind -n M-H resize-pane -L 10
bind -n M-J resize-pane -D 10
bind -n M-K resize-pane -U 10
bind -n M-L resize-pane -R 10
bind J swap-pane -D
bind K swap-pane -U
bind b break-pane
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
set -g @catppuccin_flavour 'mocha'
set -g @catppuccin_status_modules_right "date_time"
set -g @catppuccin_status_modules_left ""
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_status_icon_enable "yes"
set -g @catppuccin_status_left_separator "█"
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_window_left_separator "█"
set -g @catppuccin_window_right_separator "█"
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_status_right_separator_inverse "yes"
set -g @catppuccin_status_fill "all"
set -g @catppuccin_date_time_color "blue"
set -g @catppuccin_date_time_text "%Y-%m-%d %H:%M:%S "
set -g @catppuccin_window_default_text '#(cd #{pane_current_path}; git rev-parse --show-toplevel | xargs basename)/#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD) #{pane_current_command}'
set -g @catppuccin_window_current_text '#(cd #{pane_current_path}; git rev-parse --show-toplevel | xargs basename)/#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD) #{pane_current_command}'
set -g @catppuccin_icon_window_last ""
set -g @catppuccin_icon_window_current ""
set -g @catppuccin_icon_window_zoom " "
set -g @catppuccin_icon_window_mark " "
set -g @catppuccin_icon_window_silent " "
set -g @catppuccin_icon_window_activity ""
set -g @catppuccin_icon_window_bell " "
set -g @plugin "tmux-plugins/tmux-open"
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'jbnicolai/tmux-fpp'
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tpm'
set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"
run '~/.tmux/plugins/tpm/tpm'
# set -g status-right '#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD)'