-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
82 lines (62 loc) · 1.71 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
# 0 is hard to reach
set -g base-index 1
# vi keybinds
setw -g mode-keys vi
set default-terminal 'tmux-256color'
set -as terminal-overrides ',st*:Ss@'
# remap prefix from 'C-b' to 'C-d'
unbind C-b
set-option -g prefix C-d
bind-key C-d send-prefix
# splitting panes
unbind '"'
unbind %
bind v split-window -h -c '#{pane_current_path}'
bind h split-window -v -c '#{pane_current_path}'
bind c new-window -c '#{pane_current_path}'
# be more like i3 - q = kill
bind q kill-pane
bind x display-panes
# hide/show the status bar
bind b set status
# switch panes using Alt-[hjkl] without prefix
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# resizing panes
bind-key -n M-J resize-pane -D 2
bind-key -n M-K resize-pane -U 2
bind-key -n M-H resize-pane -L 2
bind-key -n M-L resize-pane -R 2
# No delay for escape key press
set -sg escape-time 0
# update statusline every second
set -g status-interval 1
# Reload tmux config
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Send text to all panes
bind a setw synchronize-panes
# THEME
# statusline
set -g status-justify centre
set -g status-style fg=colour7
# statusline - left
set -g status-left-length 0
set -g status-left ""
# statusline - right
set -g status-right ' %d/%m %H:%M:%S '
set -g status-right-style bold
# window
setw -g window-status-format " #I:#W "
setw -g window-status-style dim
# current window
setw -g window-status-current-format " #I:#W#F "
setw -g window-status-current-style fg=colour7,bold
# clock
setw -g clock-mode-colour colour5
# panes
set -g pane-active-border-style fg=colour4
set -g pane-border-style fg=colour8
# messages
set -g message-style bg=colour4,fg=colour3,bold