-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
74 lines (59 loc) · 2.31 KB
/
Copy pathtmux.conf
File metadata and controls
74 lines (59 loc) · 2.31 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# available (modifier) keys example: option etc. {{{
# M-x: Meta(alt=option) + x
# C-x: control + x
# }}}
# Change the prefix key to C-a: but would conflict with number addition in zsh-vim. {{{
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# }}}
# split/switch/resize/change layout for panes vim style {{{
bind s split-window -v
bind v split-window -h
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind = select-layout tiled
# zoom: max(zoom in on) pane
unbind z
bind | resize-pane -Z
# resizes
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
# option + 1/2/3: select pane layout
bind M-1 select-layout main-vertical
bind M-2 select-layout main-horizontal
# for the more common ones like even-horizontal, even-vertical, just do prefix-space to cycle through (first ones in the cycle)
# }}}
# other keybinds, e.g. toggle synchronize-panes on/off with y {{{
# toggle synchronize-panes on/off with y (sYnchronize - s is taken by (horizontal) Split)
bind y set-window-option synchronize-panes
#}}}
# styling - graphical stuff {{{
# display pane number:
set -g status-right " #{pane_index} "
# Window names displayed
set-window-option -g window-status-format " #I │ #W "
set-window-option -g window-status-current-format " #I │ #W "
set-window-option -g window-status-separator " "
# Tab styling
set -g status-style "fg=colour251,bg=colour236"
set -g window-status-style "fg=colour255,bg=colour239"
set -g window-status-activity-style "fg=colour255,bg=colour239,bright"
set -g window-status-current-style "fg=colour255,bg=colour25,bright"
# Dividing border colours
set -g pane-border-style "fg=colour236,bg=colour235"
set -g pane-active-border-style "fg=orange,bg=default"
set-option -g status on
set-option -g status-position bottom
set-option -g status-interval 3
# uncomment if you want the status to go to center
# set-option -g status-justify "centre"
set-option -g status-left "#[bg=colour234]#[fg=colour39]#S #I.#P #[fg=colour234,bg=default]$RIGHT_CAP"
set-option -g status-left-length 50
set-option -g status-right "#[fg=colour234]#[bg=default]$LEFT_CAP#[bg=colour234]#[fg=colour39] #(~/.tmux-config/ssh-hostname.sh #{pane_tty}) #(~/.tmux-config/battery.sh -t)#[fg=colour29,bg=colour234] %H:%M#[default]"
set-option -g status-right-length 50
# }}}