-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmux.conf
152 lines (128 loc) · 2.75 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# [email protected] tmux.conf
# #################
# screen-like setup
# #################
# COLOR
# oobah
#set -g status-bg green
# zircon
#set -g status-bg black
set -g status-fg white
# pi
#set -g status-bg yellow
# bio6
#set -g status-bg red
#set -g status-fg white
set -g status-bg blue
# C-a is escape sequence
unbind C-b
set -g prefix ^A
bind a send-prefix
# vim ftw
# unnecessary because $EDITOR=vim
# setw -g mode-keys vi
# copy pasta #
unbind [
# C to enter copy mode
bind C copy-mode
# v or space to select
#bind-key -t vi-copy 'v' begin-selection
# y to yank, and it goes in primary and clipboard buffers
#bind-key -t vi-copy 'y' copy-pipe "xclip -i -sel p -f | xclip -i -sel c"
# P to paste, or shift-inser as it's in bothe buffers
unbind P
bind P paste-buffer
# switch panes with Tab
unbind Tab
bind Tab select-pane -t :.+
#open man page with /
bind / command-prompt "split-window -h 'exec man %%'"
# resize pane with arrow keys
# -r: can be repeated without pressing prefix
# again (500ms after last '-r' action or prefix)
unbind Left
unbind Right
unbind Down
unbind Up
bind -r Left resize-pane -L 2
bind -r Right resize-pane -R 2
bind -r Down resize-pane -D 2
bind -r Up resize-pane -U 2
# new window ^C c
unbind ^C
bind ^C new-window
bind c new-window
# reload config without killing server
bind R source-file ~/.tmux.conf \; display-message " Config reloaded..."
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# lockscreen ^X x
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# next ^@ ^N space n
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
unbind " "
bind " " next-window
unbind n
bind n next-window
# title A
unbind A
bind A command-prompt "rename-window %%"
# ^A to get to last window
unbind ^A
bind ^A last-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# " windowlist -b
unbind '"'
bind '"' choose-window
# quit \
#unbind \
#bind \ confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
# split -v |
unbind |
bind | split-window
unbind S
bind S split-window -v
# mouse-select-pane [on | off]
# # If on, tmux captures the mouse and when a window is
# # split into multiple panes the mouse may be used to
# # select the current pane. The mouse click is also
# # passed through to the application as normal.
# #
set -g mouse on
#CPU MEM
#https://github.com/thewtex/tmux-mem-cpu-load
#set -g status-interval 2
#set -g status-right "#(tmux-mem-cpu-load 2) #H"