blob: 638c0177190ec837ec216f9660c13da70909e9f5 (
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
|
##################################################################################
#
# Settings
#
# Change the terminal type to add more colour
set -g default-terminal "tmux-256color"
# Enable mouse support
set -g mouse on
# Window titles.
set -g set-titles on
set -g set-titles-string "[ #H.#S.#I ] [ #W ] [ #T ] #{session_alerts}"
# Status bar
set -g status on
set -g status-interval 1
set -g status-justify centre
set -g status-position bottom
set -g status-style fg=white,bg=colour235
set -g status-left "#[fg=green][ #[fg=white]#H #[fg=green]]["
set -g status-left-length 30
set -g status-right "#[fg=green]][ #[fg=cyan]%Y-%m-%d #[fg=white]%I:%M #[fg=green]]"
set -g status-right-length 40
# Pane border and status
setw -g pane-border-format " #P: #T "
setw -g pane-border-status bottom
# Active window style
setw -g window-status-current-format "#[fg=red](#[fg=white]#I.#P#F$ #W#[fg=red])"
setw -g window-status-current-style fg=white,bright
# In-active window style
setw -g window-status-format " #I.#P#F$ #W "
setw -g window-status-style fg=white,dim
##################################################################################
#
# Key Bindings
#
# Add a second prefix, and a binding to send the prefix
set -g prefix2 C-x
bind-key -T prefix x send-prefix -2
# Rebind '<prefix> C-x' to switch to the last active window
bind-key -T prefix C-x last-window
# Re-add the old '<prefix> x' binding as C-q
bind-key -T prefix C-q confirm-before -p "kill-pane #P? (y/n)" kill-pane
# Remove the Ctrl-<direction> bindings
unbind-key -T prefix C-Up
unbind-key -T prefix C-Down
unbind-key -T prefix C-Left
unbind-key -T prefix C-Right
# Add Shift-<direction> bindings to change pane sizes
bind-key -r -T prefix S-Up resize-pane -U
bind-key -r -T prefix S-Down resize-pane -D
bind-key -r -T prefix S-Left resize-pane -L
bind-key -r -T prefix S-Right resize-pane -R
|