-
Notifications
You must be signed in to change notification settings - Fork 3
/
tmux.conf
67 lines (51 loc) · 1.74 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
# Re-bind prefix
unbind C-b
set -g prefix C-t
bind-key C-t send-prefix
# remove ESC delay
set -sg escape-time 1
# change base indices
set -g base-index 1
setw -g pane-base-index 1
# source new configuration
bind R source-file ~/.tmux.conf
# easier splitting
bind - split-window -v
bind v split-window -h
set-window-option -g mode-keys vi
# pseudio hjkl for dvorak with an additional right-shift
bind h select-pane -L
bind t select-pane -D
bind n select-pane -U
bind s select-pane -R
bind P next-window
bind H resize-pane -L 5
bind T resize-pane -D 5
bind N resize-pane -U 5
bind S resize-pane -R 5
# use mouse, for the few times where this is actually useful
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# colours
set -g default-terminal "screen-256color"
set -g status-fg white
set -g status-bg colour234
set -g pane-border-fg colour59
set -g pane-active-border-fg colour148
set -g message-fg colour202
set -g message-bg colour234
# status bar
set -g status-left "#[fg=colour94,bg=colour214,bold] #S #[fg=colour214,bg=colour94,bold] #h "
set -g window-status-current-format "#[fg=colour234,bg=colour148,nobold] #[nobold]#I #W#[nobold] #[fg=colour148,bg=black]"
set -g window-status-format "#[fg=colour148,bg=colour59] #I #W "
set -g status-right "#[fg=colour214,bg=black,nobold]#[fg=colour214,bg=colour94,nobold]#(uptime | cut -f 5 -d ',') #(free -m | awk 'NR == 3 { print $4 }') "
set -g status-left-length 80
set -g window-status-activity-fg colour214
set -g window-status-activity-attr bold
# Copy & Paste
# move x clipboard into tmux paste buffer
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# move tmux copy buffer into x clipboard
bind C-y run "tmux save-buffer - | xclip -i"