-
Notifications
You must be signed in to change notification settings - Fork 4
/
tmux.conf
65 lines (52 loc) · 1.94 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
set -g default-shell /bin/zsh
set -g mouse on
set -s set-clipboard on
# disable bell sound
set -g bell-action none
# enable newer keycode support in kitty
#set -s extended-keys on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'wfxr/tmux-power'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# hide status bar
bind s set -g status
#set -g @fingers-key F
set -g @tmux_power_theme '#aaaaaa'
#set -g @tmux_power_theme 'sky'
set -g @tmux_power_prefix_highlight_pos 'LR'
#set -g default-terminal "tmux-256color"
# set -g status-right "#{sysstat_cpu} | #{sysstat_mem} | #{sysstat_swap} | #{sysstat_loadavg} | #[fg=cyan]#(echo $USER)#[default]@#H"
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
set -g status-justify left
set -g set-titles on
set -g base-index 1
setw -g pane-base-index 1
# Change prefix key
unbind-key C-b
set -g prefix 'M-b'
bind-key 'M-b' send-prefix
# Toggle popup window with Alt-t
bind-key -n -N 'Toggle popup window' M-t if-shell -F '#{==:#{session_name},popup}' {
detach-client
} {
display-popup -d "#{pane_current_path}" -xC -yC -w 140 -h 80% -E 'tmux attach-session -t popup || tmux new-session -s popup'
}
# vi key bindings
set-window-option -g mode-keys vi
# switch windows with alt+arrow
bind -n M-Left previous-window
bind -n M-Right next-window
# Undercurl support
#set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
#set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
# Truecolor
set -as terminal-features ",xterm-256color:RGB,xterm*:extkeys"