-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.tmux.conf
56 lines (47 loc) · 1.47 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
#
# .tmux.conf
#
# basic
TPM_ROOT="${HOME}/.tmux/plugins"
set -g prefix C-q
set -g default-terminal 'screen-256color'
set -g terminal-overrides 'xterm:colors=256'
set -g default-shell $SHELL
set -s escape-time 0
set-window-option -g mouse on
# key binds
bind | split-window -h
bind - split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux.conf.'
unbind C-d
bind-key s send-prefix
# status bar
set-option -g status-bg 'colour0'
set-option -g status-fg 'colour249'
set-option -g status-justify 'centre'
set-option -g status-position top
set-option -g status-interval 1
set-option -g status-left-length 80
set-option -g status-left '#{?client_prefix,#[reverse],}#(whoami)@#h'
set-window-option -g window-status-current-format \
'#[fg=colour255,bg=colour30,bold] #I: #W #[default]'
set-option -g status-right-length 160
set -g status-right \
'#[fg=colour249,bg=colour0]\
#{?client_prefix,#[reverse],}\
#($TPM_ROOT/tmux-mem-cpu-load/tmux-mem-cpu-load \
--interval 1 -a 0 -m 0 -g 10) \
| #{battery_icon} #{battery_percentage} #{battery_remain} \
| %Y/%m/%d(%a) %H:%M '
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-yank'
run -b '${TPM_ROOT}/tpm/tpm'