-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
115 lines (90 loc) · 2.76 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
# remap prefix to Control + a
# unbind C-b
# set -g prefix C-a
# bind C-a send-prefix
# bind-key a send-prefix
# force a reload of the config file
unbind r
bind r source-file ${HOME}/.tmux.conf
# default shell
set-option -g default-shell /bin/zsh
# colors
set -g default-terminal "screen-256color"
# start window numbering at 1 for easier switching
set -g base-index 1
setw -g pane-base-index 1
# 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 "⚡ #(${HOME}/bin/battery Discharging; ${HOME}/bin/battery Charging) %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
# border coloring for panes
set-option -g pane-active-border-fg colour166
# 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
# bind fast session switching
unbind S
bind S command-prompt "attach-session -d -t %1"
# mouse related config
set -g mouse on
# 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-fg green #green
set-option -g status-bg default
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg yellow #yellow
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 brightmagenta #brightmagenta
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 #white
set-option -g pane-active-border-fg brightcyan #brightcyan
# message text
set-option -g message-bg white #white
set-option -g message-fg brightred #brightred
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #brightred
# clock
set-window-option -g clock-mode-colour green #green