-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
72 lines (52 loc) · 2.25 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
set -g mouse on
set -g prefix C-n
# 0 is too far from ` ;)
set -g base-index 1
set-option -g status-position top
set-option -g mode-keys vi
# use vim navigation
not_tmux="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?(g?(view|n?vim?x?)(diff)?|fzf)$'"
bind-key -n C-h if-shell "$not_tmux" "send-keys C-h" "select-pane -L"
bind-key -n C-j if-shell "$not_tmux" "send-keys C-j" "select-pane -D"
bind-key -n C-k if-shell "$not_tmux" "send-keys C-k" "select-pane -U"
bind-key -n C-l if-shell "$not_tmux" "send-keys C-l" "select-pane -R"
bind-key -n C-\ if-shell "$not_tmux" "send-keys C-\\" "select-pane -l"
# bind -n C-k send-keys -R
bind-key / copy-mode \; send-key ?
# Use v to trigger selection
bind-key -T copy-mode-vi v send-keys -X begin-selection
# Use y to yank current selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
set -g pane-border fg=colour236,bg=colour236
set -g pane-active-border fg=colour237,bg=colour237
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Shift arrow to switch windows
bind -n M-h previous-window
bind -n M-l next-window
set -g @fzf-url-bind 'x'
# port from open-net util
set -g "@open_backend_remote_tunnel_port" 20501
# important! set trueguicolors
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -g @catppuccin_flavour 'latte'
# Reload tmux config
bind r source-file ~/.tmux.conf
# theme
# source-file ~/self/dotfiles/themes/tmux-gruvbox-dark.conf
set -g @plugin 'catppuccin/tmux'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'samoshkin/tmux-plugin-sysstat'
set -g @plugin 'wfxr/tmux-fzf-url'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
# set -g @onedark_widgets "#{sysstat_mem}#[fg=#aab2bf]#[bg=#3e4452] #{sysstat_cpu}"
set -g @catppuccin_status_modules "date_time application session directory"
set -g @catppuccin_directory_text "#{sysstat_mem}#[fg=#3e4452]#[bg=#bcc0cc] #{sysstat_cpu}"
set -g @catppuccin_directory_icon ""
set -g @catppuccin_status_left_separator "█"
set -g @catppuccin_status_right_separator "█"
set -g @catppuccin_date_time_text "%H:%M:%S"