-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
84 lines (67 loc) · 2.05 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
set -g utf8 on
set -g status-utf8 on
set -g default-terminal "screen-256color"
set -g default-shell /bin/bash
setw -g automatic-rename
setw -g mode-mouse on
set -g mouse-select-pane on
set -g history-limit 30000
setw -g alternate-screen on
# start window numbering at 1
set -g base-index 1
# configure contents of status bar
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
# vim style directions for selecting panes
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# and resizing
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
# fiddle with colors of inactive windows
setw -g window-status-fg white
setw -g window-status-bg black
setw -g window-status-attr dim
# active window colours
setw -g window-status-current-fg white
setw -g window-status-current-bg default
setw -g window-status-current-attr bright
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'
unbind +
bind + \
new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\
swap-pane -s tmux-zoom.0 \;\
select-window -t tmux-zoom
unbind -
bind - \
last-window \;\
swap-pane -s tmux-zoom.0 \;\
kill-window -t tmux-zoom
# reload tmux config
unbind r
bind r \
source-file ~/.tmux.conf \;\
display 'Reloaded tmux config.'
set -g status-left-length 40
set -g status-right-length 50
set -g status-right "#[fg=colour1,bg=colour255,bold] %d %b %R, #(uptime | cut -d, -f 3,4,5,6)"
set -g status-left '#[fg=colour1,bg=colour255,bold] ❐ #S #(whoami)@#H '
set -g window-status-format "#[fg=colour239,bg=colour195,bold] #I #W "
set -g window-status-current-format "#[fg=colour235,bg=colour252,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]"