/
.tmux.conf
97 lines (81 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# .GENERAL.
# set terminal to be 256 colour (for vim in particular)
set -g default-terminal "screen-256color"
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# lower esc time -- introduces annoying lag when pressing esc in vim
set -sg escape-time 0
# increase scrollback limit
set -g history-limit 10000
# update frequency
set -g status-interval 1
# .REBINDINGS.
# prefix character
unbind C-b
set -g prefix 'C-\'
bind 'C-\' send-prefix
# splits
bind | split-window -h
unbind %
bind - split-window -v
unbind '"'
# switch panes using Alt-hjkl without prefix
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
# move window order
# NOTE: (would do with -n C-S-Left/Right, but my terminal doesn't seem to recognise it)
bind H swap-window -t -1
bind L swap-window -t +1
# .NEW COMMANDS.
# Use r to quickly reload tmux settings
unbind r
bind r source-file ~/.tmux.conf \; display 'config reloaded.'
# .COLOURS.
# most stuff
set -g status-fg white
set -g status-bg black
set -g status-attr default
# selected window
set-window-option -g window-status-current-fg green
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-attr bright
# copy mode
set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_fg 'black'
set -g @prefix_highlight_bg 'yellow'
# messages
set -g message-fg yellow
set -g message-bg black
set -g message-attr default
# 0,8 : black,grey
# 1,9 : red
# 2,10 : green
# 3,11 : yellow
# 4,12 : blue
# 5,13 : purple
# 6,14 : cyan
# 7,15 : white
# .INFO.
# left
set -g status-left " "
set -g status-justify left
setw -g window-status-format ' #(echo "#{pane_current_command}") '
setw -g window-status-current-format ' #(echo "#{pane_current_command}") '
# right
set -g status-right "#{moc_song} / #{moc_time_left} #[fg=colour12]%R "
# minimal setup:
# left
# set -g status-left " "
# set -g status-justify centre
# setw -g window-status-format ' #(echo "#{pane_current_command}") '
# setw -g window-status-current-format ' #(echo "#{pane_current_command}") '
# right
# set -g status-right " "
# .PLUGINS.
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 't3nro/tmux-moc'
# init tpm
run '~/.tmux/plugins/tpm/tpm'