-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
executable file
·194 lines (153 loc) · 6.11 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# color
# set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
# set -g default-terminal "tmux-256color"
# set -as terminal-overrides ',xterm*:sitm=\E[3m'
# # https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
# set-option -g status-bg colour235 #base02
# set-option -g status-fg colour136 #yellow
# # set-option -g status-attr default
#
# # set the pane border colors
# set -g pane-border-style 'fg=colour235,bg=default'
# set -g pane-active-border-style 'fg=colour230,bg=default'
#
# # pane number display
# set-option -g display-panes-active-colour colour33 #blue
# set-option -g display-panes-colour colour166 #orange
#
# remove renaming
set-option -g allow-rename off
# auto window rename
# set-window-option -g automatic-rename
# set window split
bind-key v split-window -h
bind-key b split-window
# #set inactive/active window styles
# set -g window-style 'fg=colour244,bg=default'
# set -g window-active-style 'fg=colour166,bg=default'
# pane border
# set-option -g pane-border-fg colour235 #base02
# set-option -g pane-active-border-fg colour240 #base01
# set-option -g pane-active-border-fg blue #base01
# message text
# set-option -g message-bg colour235 #base02
# set-option -g message-fg colour166 #orange
# clock
set-window-option -g clock-mode-colour green #green
# setting tmux history
set-option -g history-limit 50000
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
set -g status-right '#[fg=green,bg=default,bright]#(tmux-mem-cpu-load) #[fg=red,dim,bg=default]#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=white,bg=default]%a%l:%M:%S %p#[default] #[fg=white]%Y-%m-%d'
# C-b is not acceptable -- Vim uses it
#set-option -g prefix C-a
#bind-key C-a last-window
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# Vi copypaste mode
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection
bind p paste-buffer
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize pane by 5
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# set to main-horizontal, 60% height for main pane
# bind m set-window-option main-pane-height 60\; select-layout main-horizontal
# set to main-vertical, 40% height for main pane
bind m set-window-option main-pane-width 100\; select-layout main-vertical
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# status bar
# set-option -g status-utf8 on
# https://github.com/edkolev/dots/blob/master/tmux.conf
# Updates for tmux 1.9's current pane splitting paths.
# from powerline
run-shell "tmux set-environment -g TMUX_VERSION_MAJOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f1 | sed 's/[^0-9]*//g')"
run-shell "tmux set-environment -g TMUX_VERSION_MINOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f2 | sed 's/[^0-9]*//g')"
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
# Visual bell and turn off the ding
set -g visual-bell off
set -g mouse on
# TMP Install
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'wfxr/tmux-power'
# # set -g @tmux_power_theme 'snow'
# set -g @tmux_power_theme 'coral'
# set -g @plugin 'seebi/tmux-colors-solarized'
# set -g @colors-solarized 'dark'
# set -g @plugin 'catppuccin/tmux'
# set -g @catppuccin_flavour 'mocha' # or frappe, macchiato, mocha
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'basic'
# set -g @plugin 'dracula/tmux'
# # available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, network, network-bandwidth, network-ping, weather, time
# set -g @dracula-plugins "cpu-usage ram-usage time"
# # set -g @dracula-plugins "time"
#
# # available colors: white, gray, dark_gray, light_purple, dark_purple, cyan, green, orange, red, pink, yellow
# # set -g @dracula-[plugin-name]-colors "[background] [foreground]"
# set -g @dracula-show-powerline true
# # for right and left symbol (can set any symbol you like as seperator)
# set -g @dracula-show-left-sep
# set -g @dracula-show-right-sep
#
# # set -g @dracula-show-powerline true
# # set -g @dracula-show-right-sep |
# # set -g @dracula-show-left-sep |
#
# # Other examples:
# # set -g @plugin 'github_username/plugin_name'
# # set -g @plugin 'github_username/plugin_name#branch'
# # set -g @plugin '[email protected]:user/plugin'
# # set -g @plugin '[email protected]:user/plugin'
# # it can accept `session`, `smiley`, `window`, or any character.
# set -g @dracula-military-time false
# # set -g @dracula-refresh-rate 5
# set -g @dracula-show-left-icon session
# set -g @dracula-border-contrast true
# set -g @dracula-cpu-usage-label "\ "
# set -g @dracula-ram-usage-label "\ "
#
# set -g @dracula-cpu-usage-colors "dark_gray orange"
# set -g @dracula-ram-usage-colors "dark_gray orange"
# set -g @dracula-time-colors "dark_gray orange"
# set -g @dracula-show-flags true
# Plugins that I am tyring out
# extract text from pane
set -g @plugin 'laktak/extrakto'
set -g @extrakto_split_direction "v"
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'