aboutsummaryrefslogtreecommitdiff
path: root/tmux/tmux.conf
blob: c5414cb6421ad31d4d6f890d24ccd3db56bc2cd4 (plain)
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
set -g prefix C-a
unbind C-b

bind -r n switch-client -n
bind -r p switch-client -p
bind Q confirm-before -p "Kill session #S? (y/n)" kill-session

unbind %
bind v split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"

bind R source-file ~/.config/tmux/tmux.conf

bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z

set -g mouse on

set-window-option -g mode-keys vi
bind P paste-buffer
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'

unbind -T copy-mode-vi MouseDragEnd1Pane

bind-key -r C-c copy-mode

bind-key -r i run-shell "tmux neww /usr/local/bin/cht.sh"
bind-key -r D run-shell "tmux neww /usr/local/bin/tmus"

set -gq allow-passthrough on

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'rose-pine/tmux'

set -g @rose_pine_variant 'main'

set -g @rose_pine_host 'on' 
set -g @rose_pine_date_time '' 
set -g @rose_pine_user 'on' 
set -g @rose_pine_directory 'on' 
set -g @rose_pine_bar_bg_disable 'on' 

set -g @rose_pine_bar_bg_disabled_color_option 'default'

set -g @rose_pine_width_to_hide '80' 
set -g @rose_pine_window_count '5' 

run '~/.tmux/plugins/tpm/tpm'