-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
130 lines (102 loc) · 3.03 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# remap prefix to Control + a
unbind C-b
set -g prefix C-a
#bind C-a send-prefix
bind-key a send-prefix
# horse a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# colors
set -g default-terminal "screen-256color"
# title
set -g set-titles on
set -g set-titles-string '#T'
set -g status-justify centre
# start window numbering at 1 for easier switching
set -g base-index 1
setw -g pane-base-index 1
# unicode
setw -g utf8 on
set -g status-utf8 on
# status bar settings
set -g status-bg black
set -g status-fg green
set -g status-left '#h:[#S]'
set -g status-left-length 50
set -g status-right-length 50
set -g status-right "⚡ #(battery) %H:%M %d-%h-%Y"
setw -g window-status-current-format "|#I:#W|"
setw -g window-status-current-fg colour166
setw -g window-status-current-bg black
set-window-option -g automatic-rename off
# toggle the status bar
bind b set -g status\; refresh-client -S
# border coloring for panes
set-option -g pane-active-border-fg red
# listen to alerts from all windows
set -g bell-action any
setw -g window-status-bell-bg white
setw -g window-status-bell-fg red
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
bind p previous-window
# screen like window toggling
bind Tab last-window
bind Escape copy-mode
# rebind pane tiling
bind V split-window -h
bind H split-window
# shortcuts for breaking and joining panes
bind ^j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind ^s command-prompt -p "send pane to:" "join-pane -t '%%'"
bind ^b break-pane
# bind fast session switching
unbind S
bind S command-prompt "attach-session -d -t %1"
# mouse related config
#set -g mouse-select-pane off
#set -g mode-mouse off
# vim bindings
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# vim style buffer copy
bind [ copy-mode
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind -t vi-copy V rectangle-toggle
bind ] paste-buffer
# buffer
bind Space choose-buffer
# bind resize commands to keys
bind = resize-pane -D 5
bind + resize-pane -U 5
bind < resize-pane -L 5
bind > resize-pane -R 5
### COLOUR (Solarized light)
# default statusbar colors
set-option -g status-bg black #base2
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightyellow #base00
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg white #base2
set-option -g pane-active-border-fg red #base1
# message text
set-option -g message-bg white #base2
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green