-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
117 lines (97 loc) · 3.07 KB
/
dot_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
#---------------------------------------------------
#Set the prefix to ctrl + space |
#----------------------------------------------------
unbind C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
#-----------------------------------
# force a reload of the config file|
#-----------------------------------
unbind r
bind r source-file ~/.tmux.conf
#--------------------
#Status Bar Settings|
#-------------------
set -g status-style fg=red,bg=black
set-option -g status-position top
set-window-option -g window-status-current-style fg=green
set -g status-interval 2
set -g status-justify left
set-option -g status-right-length 140
set -g status-right '#(hostname)|CPU:#{cpu_percentage}|RAM:#{ram_percentage}|#{battery_icon}:#{battery_percentage}|%a %h-%d %H:%M'
bind-key b set-option status
#--------------------------------------------------
# start window numbering at 1 for easier switching|
#-------------------------------------------------
set -g base-index 1
#--------
# colors|
#--------
# panes
set -g pane-border-style fg=colour0
set -g pane-active-border-style fg=colour239
bind-key a command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key m command-prompt -p "send pane to:" "join-pane -t '%%'"
# messaging
set -g message-style fg=black,bg=yellow
set -g message-command-style fg=blue,bg=black
set -g automatic-rename off
# window mode
setw -g mode-style bg=colour6,fg=colour0
#-------------------------------
# set scrollback history to 10000|
#-------------------------------
set -g history-limit 10000
#---------
#movement|
#--------
# use PREFIX | to split window horizontally and PREFIX - to split vertically
bind | split-window -h
bind - split-window -v
bind-key J resize-pane -D 10
bind-key K resize-pane -U 10
bind-key H resize-pane -L 10
bind-key L resize-pane -R 10
bind-key M-j resize-pane -D
bind-key M-k resize-pane -U
bind-key M-h resize-pane -L
bind-key M-l resize-pane -R
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Mouse mode
set -g mouse off
#----------------
#Pane Sync Setup|
#---------------
bind . setw synchronize-panes \; display "Pane sync: #{?pane_synchronized,on,off}"
setw -qg window-status-current-format " #W #{?pane_synchronized,<sync> ,}"
#---------
# Plugins |
#---------k
setenv -g TMUX_PLUGIN_MANAGER_PATH "$HOME/.tmux/plugins/"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'schasse/tmux-jump'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @jump-key 'q'
#-----------------
# Install Plugins|
# ---------------
run '~/.tmux/plugins/tpm/scripts/update_plugin.sh'