-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
80 lines (62 loc) · 2.26 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
# prefix once, last window twice, literal
set-option -g prefix C-b
bind-key C-b last-window
bind-key b send-key C-b
# previous window, next window and next with alert while we're at it
bind-key C-v previous-window
unbind C-n
bind-key C-n next-window
bind-key C-a next-window -a
# utf8 or die
set-window-option -g utf8 on
# status (windows bar)
set-option -g status on
set-option -g status-interval 10
set-option -g status-justify left
# status left
set-window-option -g status-left "→"
# status right
set-window-option -g status-right-length 200
set-window-option -g status-right "#[fg=colour43]#(date +'%a %d %b %Y %H:%M.%S %z')#[default] load:[#[fg=colour43]#(awk '{print $1,$2,$3}' /proc/loadavg)#[default]] next:[#[fg=colour43]#(gcalcli --nc agenda %-I:%M%P | head -2 | tail -1 | sed 's/ //g')#[default]] ⚡:[#[fg=colour44]#(cat /sys/class/power_supply/BAT0/capacity)% #(cat /sys/class/power_supply/BAT0/status)#[default]]"
# watch for activity
set-window-option -g monitor-activity on
set-window-option -g visual-activity on
# colours for status
set-option -g status-fg colour35
set-option -g status-bg colour233
# colours for current window
set-window-option -g window-status-current-fg colour47
set-window-option -g window-status-current-bg colour237
# colours for activity
set-window-option -g window-status-activity-fg colour199
set-window-option -g window-status-activity-bg colour234
# colours for bell
set-window-option -g window-status-bell-fg colour226
set-window-option -g window-status-bell-bg colour56
# colours for message
set-option -g message-bg colour55
set-option -g message-fg colour14
# colours for command mode
set-option -g message-command-bg colour237
set-option -g message-command-fg colour46
# auto rename window
set-window-option -g automatic-rename on
# more logical splits
bind | split -h
bind - split -v
# mouse - but copy mode is weird so use [
set-option -g mouse-select-window on
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
# vim pane movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# vim copy mode movement
set-window-option -g mode-keys vi
# make copy mode more vimmy
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection