-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
58 lines (47 loc) · 1.44 KB
/
Copy path.tmux.conf
File metadata and controls
58 lines (47 loc) · 1.44 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
unbind C-b
set -g prefix C-Space
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
set -g mouse on
# splitting
unbind v
unbind s # TODO find alternative for s!
unbind %
unbind '"'
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
# resizing
unbind M-Up
unbind M-Right
unbind M-Down
unbind M-Left
bind -r C-k resize-pane -U 5
bind -r C-j resize-pane -D 5
bind -r C-h resize-pane -L 5
bind -r C-l resize-pane -R 5
# pane-switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
set -g repeat-time 300
# copy-mode
setw -g mode-keys vi
set-option -s set-clipboard off
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X rectangle-toggle
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
# settings
set -g default-terminal "screen-256color"
set -ag terminal-overrides ",xterm-256color:Tc"
#set -ga terminal-overrides ",alacritty:RGB"
# set -g status-style fg="black",bg="#00ff00"
set -g status-style fg="black",bg="#5f8ccd"
# pane border
set -g pane-border-style fg="white"
set -g pane-active-border-style bg="default",fg="#5f8ccd"
# set escape time to 0 because it produces a delay when using helix
set -g escape-time 0