-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
161 lines (133 loc) · 5.08 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# $Id$
# Control-B default is ok by me, finally
# If you prefer control-a because you're a former screen junkie, uncomment the below.
# unbind C-b
# set -g prefix ^A
# bind a send-prefix
# quick pane cycling
# not sure what this actually does.
unbind ^B
bind ^B select-pane -t :.+
# 256 colors - this is 2010
set-option -g default-terminal "tmux-256color"
set-option -g status-keys vi
set-option -g bell-action any
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
#set-option -g visual-bell off # might need this to get proper urgency hinting?
setw -g mode-keys vi
setw -g mouse off
set-option -g mouse off
setw -g monitor-activity on
set -g visual-activity on
#set-window-option -g xterm-keys on
bind e previous-window
bind f next-window
bind k select-pane -D
bind j select-pane -U
bind h select-pane -L
bind l select-pane -R
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
# set-option -g status-justify centre
# set-option -g status-justify left
# set-option -g status-bg black
# set-option -g status-fg white
# set-option -g status-left-length 40
set-option -g pane-active-border-fg green
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black
# set-option -g message-fg black
# set-option -g message-bg green
#setw -g mode-bg black
# setw -g window-status-bg black
# setw -g window-status-current-fg green
# setw -g window-status-current-bg colour234
# setw -g window-status-bell-attr default
# setw -g window-status-bell-fg red
# setw -g window-status-bell-bg black
# setw -g window-status-content-attr default
# setw -g window-status-content-fg red
# setw -g window-status-content-bg black
# setw -g window-status-activity-attr default
# setw -g window-status-activity-fg yellow
# setw -g window-status-activity-bg black
# center window list
#set -g status-justify centre
#set -g status-left '#[fg=green][ #[fg=cyan]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]'
#set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default] #[fg=green]]'
# edkolev/tmuxline.vim
# Generated with tmuxline then customized.
set -g status-bg "colour233"
set -g status-justify "left"
set -g status-left-length "100"
set -g status "on"
set -g pane-active-border-fg "colour25"
set -g message-bg "colour233"
set -g message-command-fg "colour244"
set -g status-right-length "200"
set -g status-right-attr "none"
set -g message-fg "colour244"
set -g message-command-bg "colour233"
set -g status-attr "none"
set -g status-utf8 "on"
set -g status-interval 12
set -g pane-border-fg "colour233"
set -g status-left-attr "none"
setw -g window-status-fg "colour238"
setw -g window-status-attr "none"
setw -g window-status-activity-bg "colour233"
setw -g window-status-activity-attr "none"
setw -g window-status-activity-fg "colour28"
setw -g window-status-separator ""
setw -g window-status-bg "colour233"
set -g status-left "#[fg=colour232,bg=colour166,bold] #h #[fg=colour166,bg=colour233,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=colour234,bg=colour233,nobold,nounderscore,noitalics]#[fg=colour244,bg=colour234] #(cat /home/davek/.nowplaying) #[fg=colour244,bg=colour234] %Y-%m-%d %H:%M #[fg=colour166,bg=colour234,nobold,nounderscore,noitalics]#[fg=colour232,bg=colour166] #S "
setw -g window-status-format " #I:#W "
#setw -g window-status-format "#[fg=colour235,bg=colour233] #I #[fg=colour235,bg=colour233] #W "
# setw -g window-status-current-format "#[fg=colour233,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour244,bg=colour236] #I #[fg=colour244,bg=colour236] #W #[fg=colour236,bg=colour233,nobold,nounderscore,noitalics]"
setw -g window-status-current-format "#[fg=colour233,bg=colour22,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour22] #I #[fg=colour0,bg=colour22] #W #[fg=colour22,bg=colour233,nobold,nounderscore,noitalics]"
# fix italics
set -as terminal-overrides ',xterm*:sitm=\E[3m'
# set default shell
# set-option -g default-shell /usr/local/bin/zsh
# prefix+r reloads the configuration, handy
bind r source-file ~/.tmux.conf
# toggle window
# bind space last-window
bind space copy-mode
bind-key -t vi-copy space begin-selection
bind-key -t vi-copy escape cancel
# Clock
setw -g clock-mode-colour green
setw -g clock-mode-style 24
# More straight forward key bindings for splitting
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# redisplay ^L l
unbind ^L
bind ^L refresh-client
# title A
unbind A
bind A command-prompt "rename-window %%"
# turn off automatic window renaming
set-window-option -g automatic-rename off
# increase scrollback
set -g history-limit 50000
# no swapping to separate screen when running mu from mutt
# set -g alternate-screen off
# toggle synchronize-panes
bind e setw synchronize-panes
# speed up esc key timeout in vim
set -sg escape-time 0
#set -g lock-after-time 120
#set -g lock-command "pipes.sh -p 10 -r 6000 -R -s 8 -t 1 -t 3"
#unbind-key m
#unbind m
#bind m send-keys "clear && tmux clear-history" \; send-keys "Enter"
# vim: filetype=tmux