-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
74 lines (59 loc) · 2.23 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
# Keybindings
# leader is Ctrl+a not Ctrl+b
unbind C-b
set -g prefix C-a
bind a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# bind fast session switching
unbind S
bind S command-prompt "switch -t %1"
# splits
bind V split-window -h
bind H split-window
# move windows
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
# Options
## mouse
set -g mouse on
## colors
set -g default-terminal "xterm-256color"
## unicode for < tmux-2.2
set-option -gq utf8 on
set-option -gq status-utf8 on
set-option -gq mouse-utf8 on
## start window numbering at 1 for easier switching
set -g base-index 1
## status bar up top
set-option -g status-position top
## listen to alerts from all windows
set -g bell-action any
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'catppuccin/tmux'
## catppuccin configuration
set -g @catppuccin_flavour 'frappe' # latte, frappe, macchiato, mocha
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 "directory session date_time"
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"
set -g @catppuccin_directory_text "#{pane_current_path}"
## run plugin manager
run '~/.tmux/plugins/tpm/tpm'
# Scroll into copy mode (scrollback buffer)
# and select text for copying with the mouse
# + select panes using mouse
if-shell "tmux -V | grep '2.[1-9]'" "set-option -gq mouse on"
if-shell "tmux -V | grep '2.[1-9]'" "bind-key -T root WheelUpPane if-shell -Ft= '#{mouse_any_flag}' 'send-keys -M' \"if-shell -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode' \" "
if-shell "tmux -V | grep '2.[1-9]'" "bind-key -T root WheelDownPane if-shell -Ft= '#{mouse_any_flag}' 'send-keys -M' \"if-shell -Ft= '#{pane_in_mode}' 'send-keys -M' \" "