-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
96 lines (81 loc) · 2.83 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
# .tmux.conf
# General settings
unbind C-b
set -g prefix C-a
set -g base-index 1
set -g mode-keys vi
set -g history-limit 10000
set -g display-panes-time 2000
set -g set-titles on
set -g set-titles-string "tmux.#I.#W"
# neovim recommendation
set -sg escape-time 10
set -g focus-events on
# Truecolor - with underline/undercurl support on alacritty
set -g default-terminal "tmux-256color"
set -ag terminal-features "xterm*:usstyle"
set -ag terminal-overrides ",alacritty:Tc"
setw -g renumber on
setw -g aggressive-resize on
setw -g monitor-activity on
set -g visual-activity off
set -g bell-action any
set -g lock-command asciiquarium
setw -g mouse on
# Clipboard managment
unbind p
unbind C-y
unbind C-p
bind p paste-buffer
bind C-y run "tmux show-buffer | xsel -b > /dev/null 2>&1"
bind C-p run "xsel -o -b | tmux load-buffer - && tmux paste-buffer"
bind-key a send-prefix
bind-key b set-option status
bind-key c command-prompt -p "window name:" "new-window; rename-window '%%'"
bind-key e command-prompt -p "command:" "new-window '%1'; rename-window '%1'"
bind-key g display-popup -E -T " gitwindow " "gitwindow"
bind-key x display-popup -E -T " kubectx " "/usr/bin/kubectx"
bind-key C-a last-window
bind-key C-l lock-session
bind-key -r C-right next
bind-key -r C-left prev
bind-key -r C-l next
bind-key -r C-h prev
bind / command-prompt -p "man:" "display-popup -E -T ' man ' 'man %%'"
bind '~' display-popup -E -T ' htop ' 'htop'
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
## Defautl colors
set -g status-bg white
## Panes
set -g pane-border-status top
set -g pane-border-format " #{pane_index} #{pane_current_command} "
set -g pane-border-lines heavy
## Statusbar
set -g display-time 2000
set -g status-left-length 100
set -g status-right-length 50
set -g status-justify left
set -g status-right ""
set -g status-left ""
setw -g allow-rename off
setw -g automatic-rename off
set -g automatic-rename-format "#{?pane_in_mode,[tmux],#{pane_current_command}}#{?pane_dead,[dead],}"
set -g status-left "#[fg=colour108]#[bg=default] "
set -g status-right "#[fg=white]#[bg=colour220]#[fg=colour24]#[bg=colour220] Pane #P 🛞 #(kubectl config current-context)"
set -g window-status-format "
#{?window_activity_flag,#[fg=colour108]#[bg=white],#[fg=white]#[bg=colour108]}
#{?window_activity_flag,#[fg=colour108]#[bg=white],#[fg=white]#[bg=colour108]} #I #W #F
#{?window_activity_flag,#[fg=white]#[bg=colour108],#[fg=colour108]#[bg=white]}
"
set -g window-status-current-format "#[fg=white]#[bg=colour220]#[fg=colour24] #I #W #F #[default]#[fg=colour220]"