-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
153 lines (122 loc) · 3.99 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
################
# Key Bindings #
################
# Custom Prefix Key
set -g prefix C-z
bind-key C-z send-prefix
# Last Window
bind-key C-x last-window
# Custom Window Split
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind _ split-window -v -c "#{pane_current_path}"
# Tab-Like Window Switching
# NB: '-n': No Prior Escape Sequence
bind -n S-Down new-window -c "#{pane_current_path}"
bind -n S-Left prev
bind -n S-Right next
bind -n C-S-Left swap-window -t -1 \; select-window -t -1
bind -n C-S-Right swap-window -t +1 \; select-window -t +1
#bind -n M-down new-window
#bind -n M-left prev
#bind -n M-right next
#bind -n M-S-left swap-window -t -1
#bind -n M-S-right swap-window -t +1
#####################
# Status Bar Config #
#####################
# All
set -g status-bg colour8
set -g status-fg white
# Left
#set -g status-left ''
#set -g status-left-fg white
#set -g status-left-bg blue
#set -g status-left '#H:#S'
# Right
#set -g status-right '#[fg=yellow]#(uptime | cut -d “,” -f 2-)'
#set -g status-right-fg white
#set -g status-right-bg blue
#set -g status-right '%a %b %d, %Y %H:%M'
# Active Window Color
# 2.8
#set-window-option -g window-status-current-fg colour0
#set-window-option -g window-status-current-bg white
# 2.9+
set-window-option -g window-status-current-style fg=black,bg=white
# Window Style
#set -g window-style 'bg=default'
#set -g window-active-style 'bg=default'
# Pane Styles
#set-option -g pane-border-fg white
#set-option -g pane-active-border-fg green
#set -g pane-border-bg white
#set -g pane-border-fg white
#set -g pane-active-border-bg green
#set -g pane-active-border-fg green
# Window Notifications
#setw -g monitor-activity on
#set -g visual-activity on
setw -g monitor-activity off
set -g visual-activity off
##################
# Visual Options #
##################
# 256 Colors for Solarized
set -g default-terminal "screen-256color"
#########################
# General Configuration #
#########################
# Set Copy Mode Keys to Vi
set -g mode-keys vi
set-option -g mouse on
set-option -s set-clipboard off
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i"
# Increase History from 2000 Line Default
set-option -g history-limit 500000
# Turn on Mouse
set -g mouse on
# Status bar options
set-option -g status on
set-option -g status-interval 1
set-option -g status-right-length 60
set-option -g status-right-style default
# NOTE: must make and install: https://github.com/thewtex/tmux-mem-cpu-load
set-option -g status-right "#[fg=green,bg=default,bright]#(tmux-mem-cpu-load -v -a 1 -i 1) "
set-option -ag status-right "#[fg=red,bg=default]#(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') "
set-option -ag status-right "#[fg=white,bg=default]%Y-%m-%d #[fg=white,bg=default]%a%l:%M:%S %p#[default]"
######################
# Clipboard Settings #
######################
# ctrl+c to copy from clipboard
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
# ctrl+v to paste from clipboard
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
# Show buffer
bind Space choose-buffer
#######################
# TMUX Plugin Manager #
#######################
# List of plugins
set -g @plugin 'tmux-plugins/tpm' # Default
#set -g @plugin 'tmux-plugins/tmux-yank'
#set -g @plugin 'seebi/tmux-colors-solarized'
#set -g @plugin 'imomaliev/tmux-bash-completion'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Enable tmux-continuum automatically
set -g @continuum-restore 'on'
# To show mem-cpu-load in status bar
# NOTE: must make and install: https://github.com/thewtex/tmux-mem-cpu-load
set -g @plugin 'thewtex/tmux-mem-cpu-load'
# Set Solarized Dark
#set -g @colors-solarized 'dark'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# To Override TMUX Plugins:
# 2.8
#set -g pane-border-fg white
#set -g pane-active-border-fg green
# 2.9+
set -g pane-border-style fg=white
set -g pane-active-border-style fg=green