blob: 28a99cca693b04fc611612413bb5d35f18727e5f (
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
|
set -g status-position bottom
set -g status-style "bg=default,fg=#fcfcfc"
set -g status 2
# Row 0: top divider
set -g status-format[0] "#[fg=#444444,bg=default,fill=─]"
# Row 1: content — session | windows | host
set -g status-format[1] "#[align=left,bg=default]#{E:status-left}#[list=on]#{W:#{E:window-status-format},#{E:window-status-current-format}}#[list=off,align=right]#{E:status-right}"
set -g message-style "bg=default,fg=#fcfcfc"
set -g message-command-style "bg=default,fg=#fcfcfc"
# Copy mode / scroll indicator
set -g mode-style "bg=default,fg=#fcfcfc,reverse"
# Left: session name
set -g status-left " #[fg=#fcfcfc]#S #[fg=#555555]│ "
set -g status-left-length 30
# Right: host
set -g status-right "#[fg=#555555]│ #[fg=#fcfcfc]#h "
set -g status-right-length 50
set -g window-status-format " #[fg=#888888]#I #W "
set -g window-status-current-format " #[fg=#fcfcfc]#I #W "
set -g window-status-separator ""
set -g pane-border-style "fg=#444444"
set -g pane-active-border-style "fg=#fcfcfc"
unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind d detach-client
set -g status-interval 5
set -sg escape-time 10
set -g base-index 1
set -g mouse on
# Smooth scrolling (1 line per tick)
bind -T copy-mode WheelUpPane send-keys -X scroll-up
bind -T copy-mode WheelDownPane send-keys -X scroll-down
bind -T copy-mode-vi WheelUpPane send-keys -X scroll-up
bind -T copy-mode-vi WheelDownPane send-keys -X scroll-down
# Keep selection highlighted after mouse drag
bind -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy"
# Prevent click from passing through to terminal (causes jump-to-bottom)
bind -T copy-mode MouseDown1Pane select-pane
bind -T copy-mode-vi MouseDown1Pane select-pane
|