aboutsummaryrefslogtreecommitdiff
path: root/files/rcs/.tmux.conf
blob: 2b17bbbcbb7f013de96099d885adf44bd986fc2b (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
58
59
60
61
62
63
64
65
66
67
unbind C-b
set -g prefix m-a
bind m-a send-prefix
set-option -g default-terminal "screen-256color"
set -g xterm-keys on
#setw -g monitor-activity on
#set -g visual-activity on
set -g mode-keys vi
set -g status-keys vi

# Theme
#set-option -g status-style attr=default
# status bar
set-option -g status-style "fg=colour4 bg=default"
# status bar windows
set-window-option -g window-status-style "fg=colour4 bg=default"
# status bar selected window
set -g window-status-current-style "fg=colour13 bg=default"
#set-window-option -g window-status-current-attr bold default
# pane borders
set-option -g pane-border-style "fg=colour0 bg=default"
set-option -g pane-active-border-style "fg=colour4 bg=default"
# pane number display
set-option -g display-panes-colour colour4
set-option -g display-panes-active-colour colour5
# messages
set-option -g message-style "fg=colour2 bg=default"
# clock
set-window-option -g clock-mode-colour colour4
# sizes
set -g status-interval 60
set -g status-left-length 20
#set -g status-left '#[fg=green](#S) #(whoami)  '
set -g status-left '(#S)  '
#zoom
#{?window_zoomed_flag, ,🔍}

set -g base-index 0
set -s escape-time 0
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
bind-key C command-prompt -p "Name of new window:" "new-window -n '%%'"

# moving between panes with vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# moving between windows with vim movement keys
#bind -r H select-window -t :-
#bind -r L select-window -t :+

# resize panes with vim movement keys
bind -r m-h resize-pane -L 1
bind -r m-j resize-pane -D 1
bind -r m-k resize-pane -U 1
bind -r m-l resize-pane -R 1
bind -r m-H resize-pane -L 10
bind -r m-J resize-pane -D 10
bind -r m-K resize-pane -U 10
bind -r m-L resize-pane -R 10

# cursor shape in nvim
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'

# recommended by nvim :healthcheck
set-option -sa terminal-overrides ',rxvt-256color:RGB'