-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtmux.conf
79 lines (61 loc) · 2.66 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
# use 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 10k
set -g history-limit 10000
# shorten command delay
set -sg escape-time 1
# set window title correctly via PROMPT_COMMAND
set -g set-titles on
set -g set-titles-string "#T"
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# use PREFIX | to split window horizontally and PREFIX - to split vertically
bind | split-window -h
bind - split-window -v
# Make the current window the first window
bind T swap-window -t 1
# map Vi movement keys as pane movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# and use C-h and C-l to cycle thru panes
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# use vim keybindings in copy mode
setw -g mode-keys vi
# ----------------------
# COLOUR (Solarized 256)
# ----------------------
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
# ----------------------
# Status Bar
# ----------------------
# window status
setw -g window-status-format "#[fg=white] #I:#W #[fg=colour244]"
setw -g window-status-current-format "#[bg=colour208]#[fg=colour235]#[fg=colour17]#[bg=colour208] #I:#W #[bg=colour208]#[fg=colour235]#[fg=colour244]"
set-option -g status on # turn the status bar on
set -g status-interval 5 # set update frequencey (default 15 seconds)
set -g status-justify centre # center window list for clarity
# set-option -g status-position top # position the status bar at top of screen
# show host namem IP address, session name, window & pan number on left side of status bar
set -g status-left-length 80
set -g status-left "#[fg=colour235]#[bg=colour9] #h #[fg=colour9]#[bg=colour10]#[fg=colour235]#[bg=colour10] %a %D %H:%M %Z #(curl -4 icanhazip.com) #[fg=colour10]#[bg=colour12]#[fg=colour235]#[bg=colour12] #S #I:#P #[fg=colour12]#[bg=colour235]"
# show date and time on right side of status bar
set -g status-right-length 80
set -g status-right "#(tmux-mem-cpu-load -g 0 -m 2 --powerline-right --interval 2) #[fg=colour10]#[fg=colour235]#[bg=colour10] up #(uptime | cut -f 4-5 -d \" \" | cut -f 1 -d \",\") "