summaryrefslogtreecommitdiff
path: root/.tmux.conf
blob: 2a4d744a351eb281f3ee8b6f84f8b41ce60e54e7 (plain)
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
set -g prefix C-a
setw -g mode-keys vi

# split panes using | and -
bind | split-window -h
bind = split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# don't rename windows automatically
set-option -g allow-rename off

# escape-time
set -sg escape-time 0

# Shell naming
set-option -g set-titles on
set-option -g set-titles-string "dropdown_#S"

# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# swap pane
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1

# resize panes like vim
# feel free to change the "1" to however many lines you want to resize by, only
# one at a time can be slow
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10

# sync panes
bind b setw synchronize-panes\; display 'Synchronize-panes'

# vi-style controls for copy mode
setw -g mode-keys vi

# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf\; display "Reloaded!"

# main vertical layout settings
bind M-6 set-window-option main-pane-width '165'\; select-layout main-vertical

# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1

# set -g renumber-windows on

# unicode support
#setw -g utf8 on
#set -g status-utf8 on

# listen to alerts from all windows
set -g bell-action any

# auto rename window
set-option -g allow-rename off

set-option history-file ~/.tmux/.tmux_history

#..........
# Status line - http://dotshare.it/dots/963/
# Colours,
# for i in {0..255} ; do
#     printf "\x1b[38;5;${i}mcolour${i}\n"
# done
#..........
set -g status-left ''
set -g status-justify right
set -g status-position bottom
# set -g status-right '#[fg=colour176,bold,bg=colour236,bold] %B #[fg=colour146,bold,bg=colour236,bold]%d, #[fg=colour173,bold,bg=colour236,bold]%Y#[fg=default] #[fg=colour234,bold,bg=colour12,bold] %R '
set -g status-right ''
set -g status-right-length 100
set -g status-bg default

# Dusk and black
# setw -g window-status-format '#[fg=colour180,bold,bg=colour236,bold] #I #[fg=colour236,bold,bg=colour180,bold] #W '
# setw -g window-status-current-format '#[fg=colour236,bold,bg=colour180,bold] #I #[fg=colour180,bold,bg=colour236,bold] #W '

# Black and white
setw -g window-status-format '#[fg=white,bg=default]#{?window_zoomed_flag,(, }#I #W#{?window_zoomed_flag,), }'
# setw -g window-status-current-format '#[fg=colour232,bold,bg=white,bold] #I #W '
#setw -g window-status-current-format '#{?window_zoomed_flag,#[bg=white]#[fg=red](,}#[fg=colour232,bold,bg=white,bold]#I #W#{?window_zoomed_flag,#[fg=red]),}'
setw -g window-status-current-format '#[fg=colour232,bold,bg=white]#{?window_zoomed_flag,(, }#I #W#{?window_zoomed_flag,), }'

# Bold Purple and black
# setw -g window-status-format '#[fg=colour213,bg=colour236] #I #[fg=colour213,bg=colour236] #W '
# setw -g window-status-current-format '#[fg=colour236,bold,bg=colour213,bold] #I #[fg=colour213,bold,bg=colour236,bold] #W '

# Chark Purple and black
# setw -g window-status-format '#[fg=colour176,bg=colour236] #I #[fg=colour176,bg=colour236] #W '
# setw -g window-status-current-format '#[fg=colour236,bold,bg=colour176,bold] #I #[fg=colour176,bold,bg=colour236,bold] #W '

setw -g window-status-format '#[fg=colour1,bg=colour1] #I #[fg=colour253,bg=colour52] #W '
setw -g window-status-current-format '#[fg=colour30,bold,bg=colour253,bold] #I #[fg=colour253,bold,bg=colour30,bold] #W '
#..........
# Other good status line
#  1.  http://dotshare.it/dots/586/
#..........