-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
132 lines (94 loc) · 4.46 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
## TMUX ########################################################################
# use zsh by default
set -g default-shell /bin/zsh
# start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# disable automatic windows renaming
set-option -g allow-rename off
# enable truecolor support
set -g default-terminal 'xterm-256color'
set-option -g terminal-overrides ",xterm-256color:Tc"
## HOTKEYS #####################################################################
# rearrage windows with 'Ctrl+B → R'
bind r move-window -r
# always open new windows with home dir
bind c new-window -c "$HOME" -n '~'
# show sessions tree with 'Ctrl+Q'
bind -n C-Q choose-tree -G
# show or hide panes names with 'Ctrl+T'
bind -n C-T set-option -p pane-border-status
# sync panes with 'Ctrl+B → A'
bind a set-window-option synchronize-panes\; display-message "Panes syncing is now #{?pane_synchronized,ON,OFF}"
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-Arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# resize pane with 'Ctrl+Z'
bind -n C-Z resize-pane -Z
# reorder windows with 'Ctrl+Left'/'Ctrl+Right'
bind -n C-Left swap-window -d -t -1
bind -n C-Right swap-window -d -t +1
# select windows by F1-F11
bind -n F1 select-window -t 1
bind -n F2 select-window -t 2
bind -n F3 select-window -t 3
bind -n F4 select-window -t 4
bind -n F5 select-window -t 5
bind -n F6 select-window -t 6
bind -n F7 select-window -t 7
bind -n F8 select-window -t 8
bind -n F9 select-window -t 9
bind -n F10 select-window -t 10
bind -n F11 select-window -t 11
# kill window by F12
bind -n F12 kill-window
## CLOCK DESIGN ################################################################
set -g clock-mode-colour colour236
## PANES DESIGN ################################################################
set -g pane-border-style 'fg=black'
set -g pane-active-border-style 'fg=brightred'
## STATUS BAR DESIGN ###########################################################
set -g status-justify left
set -g status-bg default
set -g status-fg colour12
set -g status-interval 2
## MESSAGING DESIGN ############################################################
set -g message-style 'fg=black,bg=yellow'
set -g message-command-style 'fg=blue,bg=black'
## WINDOWS DESIGN ##############################################################
setw -g window-style 'bg=colour235'
setw -g window-active-style 'bg=colour234'
setw -g window-status-format ' #F#I:#W#F '
setw -g window-status-current-format ' #F#I:#W#F '
setw -g window-status-format '#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W '
setw -g window-status-current-format '#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W '
setw -g window-status-current-style 'fg=colour11,bg=colour0,dim'
setw -g window-status-style 'fg=black,bg=green,reverse'
## MODES #######################################################################
setw -g clock-mode-colour colour135
setw -g mode-style 'fg=colour196,bg=colour238,bold'
## PANES #######################################################################
set -g pane-border-style 'fg=colour238,bg=colour235'
set -g pane-active-border-style 'fg=colour80,bg=colour234'
set -g pane-border-format " #{?pane_active,#[fg=colour66],#[fg=colour238]}[#{pane_index} → #{?@custom_pane_title,#{@custom_pane_title},#{pane_current_path}}] "
## STATUS BAR ##################################################################
set -g status-position bottom
set -g status-style 'fg=colour137,bg=colour234,dim'
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style 'bg=colour238,none'
setw -g window-status-current-format ' #[fg=colour250,bold]#I#[fg=colour243,bold] ∣ #[fg=colour231,none]#W#[fg=colour250] #F '
setw -g window-status-style 'bg=colour235,none'
setw -g window-status-format ' #[none]#{?window_bell_flag,#[fg=colour231],#[fg=colour244]}#I#{?window_bell_flag,#[fg=colour158],#[fg=colour239]}#[bold] ∣ #{?window_bell_flag,#[fg=colour231],#[fg=colour244]}#[none]#W#{?window_bell_flag,#[fg=colour195],#[fg=colour242]} #F '
setw -g window-status-bell-style 'bg=colour44,bold'
## MESSAGES ####################################################################
set -g message-style 'fg=colour232,bg=colour166,bold'