-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
137 lines (106 loc) · 3.18 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
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @yank_selection 'primary'
set -g focus-events on
# Changing the Prefix
unbind C-b
set -g prefix C-a
# act like vim
setw -g mode-keys vi
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
set -g prefix2 C-s
# Activity Monitoring
setw -g monitor-activity on
set -g visual-activity on
# Highlighting Current Window Using Specified Colour
# set-window-option -g window-status-current-bg yellow
# Pane Switching Using Mouse
set-option -g mouse on
#set -g default-terminal "xterm"
set -g default-terminal "screen-256color"
# IMPORTANT: Also need to add "export TERM=xterm-256color" to .zshrc (with YADR default config)
# otherwise vim colors are not displayed correctly
# start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
set-window-option -g pane-base-index 1
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right ''
# increase scrollback lines
set -g history-limit 10000
# New window
unbind _
bind _ split-window -c "#{pane_current_path}"
unbind |
bind | split-window -h -c "#{pane_current_path}"
# cycle through panes
unbind ^A
bind ^A select-pane -t :.+
# Focus on current pane
unbind +
bind + resize-pane -Z
# Resize panes
unbind Right
bind Right resize-pane -R 10
unbind Left
bind Left resize-pane -L 10
unbind Up
bind Up resize-pane -U 5
unbind Down
bind Down resize-pane -D 5
set-option -sg escape-time 10
# Vim selection:
#unbind [
#bind Escape copy-mode
#unbind p
#bind p paste-buffer
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'y' copy-selection
#setw -g mode-keys vi
#bind -t vi-copy y copy-pipe "xclip -sel clip -i"
#Easy Config Reloads
unbind r
bind r source-file ~/.tmux.conf
# tile all windows
unbind =
bind = select-layout tiled
# unbind =
# bind = select-layout tiled
# The statusbar {
set -g status-position bottom
set -g status-bg colour234
set -g status-fg colour137
# set -g status-attr dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour245,bold] %A %d %B %-H:%M #[fg=colour25j,bg=colour000] #(whoami)@#H'
set -g status-right-length 50
set -g status-left-length 20
# setw -g window-status-current-fg colour81
# setw -g window-status-current-bg colour238
# setw -g window-status-current-attr bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
# setw -g window-status-fg colour138
# setw -g window-status-bg colour235
# setw -g window-status-attr none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
# setw -g window-status-bell-attr bold
# setw -g window-status-bell-fg colour255
# setw -g window-status-bell-bg colour1
# RGB capability
set-option -sa terminal-overrides ',alacritty:RGB'
#
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'