-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
110 lines (88 loc) · 3.17 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
# need for italics, doesnt work regardless
set -g default-terminal "rxvt-unicode-256color"
# remap prefix from 'C-b' to 'C-q'
unbind C-b
set-option -g prefix C-q
bind-key C-q send-prefix
# don't rename windows automatically
set-option -g allow-rename off
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# sync panes
bind = setw synchronize-panes on
bind ` setw synchronize-panes off
# split/kill panes using vim-like binds
bind v split-window -h
bind s split-window -v
bind q kill-pane #P
unbind '"'
unbind %
unbind x
# hjkl for traversing and resizing panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h resize-pane -L 5
bind -r C-j resize-pane -D 5
bind -r C-k resize-pane -U 5
bind -r C-l resize-pane -R 5
# Vi copypaste mode
set-window-option -g mode-keys vi
bind-key -T edit-mode-vi Up send-keys -X history-up
bind-key -T edit-mode-vi Down send-keys -X history-down
unbind-key -T copy-mode-vi Space ; bind-key -T copy-mode-vi v send-keys -X begin-selection
unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
unbind-key -T copy-mode-vi C-v ; bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
unbind-key -T copy-mode-vi [ ; bind-key -T copy-mode-vi [ send-keys -X begin-selection
unbind-key -T copy-mode-vi ] ; bind-key -T copy-mode-vi ] send-keys -X copy-selection
# Basic status bar colors
set -g status-fg colour15
set -g status-bg colour0
# Left side of status bar
set -g status-left-bg colour8
set -g status-left-fg colour7
set -g status-left-length 40
set -g status-left "#[fg=colour7,bg=colour8,bold] #S #[nobold]|#[bold] #I:#P "
# Right side of status bar
set -g status-right-bg colour8
set -g status-right-fg colour7
set -g status-right-length 150
# thinkpad
set -g status-right "#[fg=colour7,bg=colour8] %d-%b-%y %H:%M:%S | #[bold]#(whoami)@#H[#(cat /sys/devices/platform/smapi/BAT0/remaining_percent)%] "
# normal status
#set -g status-right "#[fg=colour7,bg=colour8] %d-%b-%y %H:%M:%S | #[bold]#(whoami)@#H "
# Window status
set -g window-status-format "#[fg=colour15,bg=colour0] #I:#W#F "
set -g window-status-current-format "#[fg=colour7,bg=colour8] #I:#W#F "
# Current window status
set -g window-status-current-bg colour255
set -g window-status-current-fg colour235
# Window with activity status
set -g window-status-activity-bg colour8 # fg and bg are flipped here due to
set -g window-status-activity-fg colour7 # a bug in tmux
# Window separator
set -g window-status-separator ""
# Window status alignment
set -g status-justify centre
# Pane border
set -g pane-border-bg colour8
set -g pane-border-fg colour7
# Active pane border
set -g pane-active-border-bg colour8
set -g pane-active-border-fg colour7
# Pane number indicator
set -g display-panes-colour colour8
set -g display-panes-active-colour colour7
# Clock mode
set -g clock-mode-colour colour15
set -g clock-mode-style 24
# Message
set -g message-bg colour8
set -g message-fg colour7
# Command message
set -g message-command-bg colour8
set -g message-command-fg colour7
# Mode
set -g mode-bg colour8
set -g mode-fg colour7