blob: 93b92cce4e1117854ed50c5d3a4e0f87847b3dee (
plain) (
blame)
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
|
### Basic Settings
# re-map prefix key
set -g prefix C-x
bind-key a send-prefix # for nested tmux sessions
# re-source tmux.conf
bind-key r source-file ~/.tmux.conf
# terminate tmux
bind-key C-q confirm-before -p "kill-window #W? (y/n)" kill-window
# maximize current pane
bind-key f resize-pane -Z # overwrites find window
# resolved key forwarding problem
set-window-option -g xterm-keys on
# had some struggle with vim key delay
set -s escape-time 0
# mouse support
setw -g mouse on
# default TERM
set -g default-terminal "screen-256color"
# split settings
bind-key s split-window -h
bind-key h split-window
# move between splits
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
# Copy mode settings
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind-key C-v copy-mode
bind-key p paste-buffer # overwrites previous window
### Colour Settings
# bash cmd to display colours
#for i in {0..255} ; do printf "\x1b[38;5;${i}mcolour${i}\n"; done
# default statusbar colors
set-option -g status-bg colour235
set-option -g status-fg colour136
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244
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 colour166
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 colour235
set-option -g pane-active-border-fg colour202
# message text
set-option -g message-bg colour235
set-option -g message-fg colour166
# pane number display
set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166
# clock
#set-window-option -g clock-mode-colour colour62
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M '
#set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-right-length 50
#set status-interval 5
|