-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
73 lines (55 loc) · 2.18 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
# tmux.conf primarily adapted from: http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/
# Rebind the '-' to do vertical splitting
bind - split-window -v
# Setup the status bar
set -g status-style bg=black,fg=white
set -g status-left '#[fg=green]#H'
# Highlight active window
set-window-option -g window-status-current-style bg=red
# Display load info
#set -g status-right '#{battery_icon}#{batter_percentage}#[fg=yellow]#(uptime | cut -d "," -f 2-)'
set -g status-right "#[fg=yellow]CPU: #{cpu_icon}#{cpu_percentage} | Batt: #{battery_icon}#{battery_percentage} | %a %h-%d %H:%M "
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Tmux notifications should only be around for 700ms
set -g display-time 700
# Set system bell to chime when anything changes
#set-option bell-action any
# Automatically set window title
setw -g automatic-rename
# Setup last window so you can do: C-b C-b to swap windows (like alt+tab)
bind C-b last-window
# http://unix.stackexchange.com/questions/14300/tmux-move-window-to-pane/14301#14301
# Setup binding to move panes between windows
bind-key J command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key S command-prompt -p "send pane to:" "join-pane -t '%%'"
# "Move" pane to a new window of its own
bind-key m break-pane
# Set vi mode keys. Info on keys -- http://superuser.com/a/197272
setw -g mode-keys vi
# Setup pane movements to work with vi-style keys, too!
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Pane synchronization
unbind C-s
bind C-s set-window-option synchronize-panes
# Increase limit of history in scrollback buffer
set-option -g history-limit 10000
# List of plugins
# Supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-battery \
tmux-plugins/tmux-cpu \
tmux-plugins/tmux-ressurect \
'
# Other examples:
# github_username/plugin_name \
# [email protected]/user/plugin \
# [email protected]/user/plugin \
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'