-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
114 lines (95 loc) · 4.47 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
# vim: ft=sh
unbind C-b
set -g prefix `
bind-key L last-window
bind | split-window -h
bind - split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind e popup
set -g base-index 1
setw -g mode-keys vi
setw -g status-keys vi
setw -g window-status-separator ''
setw -g status-left " #H "
setw -g status-right " %H:%M %d-%b-%y "
setw -g status-right-style bold
#setw -g window-status-format " #I: #W "
setw -g window-status-format "#{pane_current_path}".
setw -g window-status-current-format " #I: #W "
setw -g pane-base-index 1
set-option -g default-shell /bin/zsh
set-option -g escape-time 0
set -g terminal-features "*:hyperlinks"
set -g default-terminal "screen-256color"
bind-key z new-window -c "#{pane_current_path}" -n "rgfzf" "nvim $(rgfzf)"
bind-key r new-window -c "#{pane_current_path}" -n "joshuto" joshuto
bind-key g new-window -c "#{pane_current_path}" -n "lazygit" lazygit
bind-key d new-window -c "#{pane_current_path}" -n "lazydocker" lazydocker
bind-key b new-window -c "#{pane_current_path}" -n "bottom" btm -C ~/.config/btm/btm.toml
run -b 'tmux bind -t vi-copy v begin-selection 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi v send -X begin-selection 2> /dev/null || true'
run -b 'tmux bind -t vi-copy C-v rectangle-toggle 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi C-v send -X rectangle-toggle 2> /dev/null || true'
run -b 'tmux bind -t vi-copy y copy-selection 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi y send -X copy-selection-and-cancel 2> /dev/null || true'
run -b 'tmux bind -t vi-copy Escape cancel 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi Escape send -X cancel 2> /dev/null || true'
run -b 'tmux bind -t vi-copy H start-of-line 2> /dev/null || true'
run -b 'tmux bind -T copy-mode-vi L send -X end-of-line 2> /dev/null || true'
# '@pane-is-vim' is a pane-local option that is set by the plugin on load,
# and unset when Neovim exits or suspends; note that this means you'll probably
# not want to lazy-load smart-splits.nvim, as the variable won't be set until
# the plugin is loaded
# Smart pane switching with awareness of Neovim splits.
bind-key -n C-h if -F "#{@pane-is-vim}" 'send-keys C-h' 'select-pane -L'
bind-key -n C-j if -F "#{@pane-is-vim}" 'send-keys C-j' 'select-pane -D'
bind-key -n C-k if -F "#{@pane-is-vim}" 'send-keys C-k' 'select-pane -U'
bind-key -n C-l if -F "#{@pane-is-vim}" 'send-keys C-l' 'select-pane -R'
# Smart pane resizing with awareness of Neovim splits.
bind-key -n M-h if -F "#{@pane-is-vim}" 'send-keys M-h' 'resize-pane -L 3'
bind-key -n M-j if -F "#{@pane-is-vim}" 'send-keys M-j' 'resize-pane -D 3'
bind-key -n M-k if -F "#{@pane-is-vim}" 'send-keys M-k' 'resize-pane -U 3'
bind-key -n M-l if -F "#{@pane-is-vim}" 'send-keys M-l' 'resize-pane -R 3'
#bind-key -n 'C-\\' if -F \"#{@pane-is-vim}\" 'send-keys C-\\\\' 'select-pane -l'
bind-key -T copy-mode-vi 'C-h' select-pane -L
bind-key -T copy-mode-vi 'C-j' select-pane -D
bind-key -T copy-mode-vi 'C-k' select-pane -U
bind-key -T copy-mode-vi 'C-l' select-pane -R
bind-key -T copy-mode-vi 'C-\' select-pane -l
bind-key S capture-pane -b temp-capture-buffer -S - \; save-buffer -b temp-capture-buffer /tmp/tmux.log \; delete-buffer -b capture-buffer
set -g @resurrect-processes ':all:'
set -g @tmux_power_theme 'sky'
#set -g @srcery_tmux_patched_font '1'
#source-file ~/.tmux/lightline
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-logging'
#set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'wfxr/tmux-power'
#set -g @plugin 'srcery-colors/srcery-tmux'
set -g @plugin 'catppuccin/tmux'
#set -g @plugin 'sainnhe/tmux-fzf'
#set -g @plugin 'aserowy/tmux.nvim'
#
set -g @catppuccin_status_modules "application session user host date_time"
set -g @catppuccin_flavour "groovy-light"
set -g @catppuccin_powerline_icons_theme_enabled on
set -g @catppuccin_user "on"
set -g @catppuccin_host "on"
#set -g status-left "#{pane_current_path}"
#TMUX_FZF_OPTIONS="-p -w 40% -h 30% -m"
#TMUX_FZF_LAUNCH_KEY="f"
#TMUX_FZF_ORDER="session|pane|command|keybinding|window"
#TMUX_FZF_PANE_FORMAT="#{p15:#{b:pane_current_path}} :: #{pane_current_command}"
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'
set-window-option -g visual-bell on
set-window-option -g bell-action other