-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
92 lines (67 loc) · 2.36 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
set -g default-terminal "tmux-256color"
# enable activity alerts
# set -g bell-on-alert on # TODO(nils): invalid option on tmux 2.6
setw -g monitor-activity on
set -g visual-activity on
# Center the window list
set -g status-justify centre
set-option -g prefix C-Space
#swap between last window
bind-key C-Space last-window
# escape time to make more twitching keybinds
set -s escape-time 0
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#one indexing
set -g base-index 1
set-window-option -g pane-base-index 1
# reload of config file
bind R source-file ~/.tmux.conf \; display-message "~/.tmux.conf loaded"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Highlight active window
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg white
# resize panes with vim movement keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Toggle statusbar
bind a set -q status
# Hide status bar by default
set -g status off
#-- Misc Colours --------------------------------------------------------------
# Border Colours
set -g pane-active-border-bg default
set -g pane-active-border-fg colour240
set -g pane-border-bg default
set -g pane-border-fg colour235
#-- Statusbar -----------------------------------------------------------------
# Status refresh interval in seconds
set -g status-interval 5
# Default sb colours (256 -- love me some gray)
set -g status-bg colour235
set -g status-fg white
# Window title colors
set -g set-titles on
set -g set-titles-string "#S: #T"
# Status colors
set-window-option -g window-status-fg colour240
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg colour237
set-window-option -g window-status-current-attr default
# Command/message line colors
set -g message-fg black
set -g message-bg green
# extrakto plugin for extracting words and urls from tmux panes and scrollback
# buffers
run-shell ~/repos/extrakto/extrakto.tmux