-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
111 lines (84 loc) · 2.73 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
# improve colors
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# urxvt with middle click paste
set-option -ga terminal-overrides ',rxvt-uni*:XT:Ms=\E]52;%p1%s;%p2%s\007'
set-option -g update-environment "SSH_AUTH_SOCK \
SSH_CONNECTION \
DISPLAY \
SWAYSOCK"
# start with window at 1
set -g base-index 1
set -g monitor-bell off
# start with pane at 1
set -g pane-base-index 1
# automatically renumber panes
set-option -g renumber-windows on
# set prefix to ^s
set -g prefix C-s
# quick escape time. helps with neovim
set -s escape-time 0
# increase history
set-option -g history-limit 10000
# act like vi
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind p paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# mouse mode
set -g mouse on
# create panes and windows in same working directory
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
#
# Theming
#
#colors
# everforest
tm_color_blue=colour2
tm_color_bg='#1d2226'
# tokyonight
# tm_color_bg='#1f2335'
# tm_color_blue=colour75
tm_color_cream=colour230
tm_color_lightgray=colour244
tm_color_gray=colour236
tm_color_orange=colour209
# pane borders
# set -g pane-border-style fg=$tm_color_gray
# set -g pane-active-border-style fg=$tm_color_lightgray
set -g pane-border-format "#[fg=cyan][#{pane_current_command}]"
# status line
# set -g status-justify left
# set -g status-bg color237 # seoul256
# set -g status-bg color233 # mountain
# set -g status-fg white
set -g status-interval 4
# window status
setw -g window-status-format "#[fg=$tm_color_lightgray] #I#[fg=$tm_color_lightgray]:#W"
setw -g window-status-current-format "#[fg=$tm_color_orange] #I#[fg=$tm_color_orange]:#W"
set -g status-bg $tm_color_bg
set -g status-left "#[fg=$tm_color_blue,bg=$tm_color_bg] " # alts
set -g status-right " %a %d %b %H:%M"
set -g status-right-length 150
# Tmux Resurrect
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
# Tmux plugin manager
#List of plugins
set -g @plugin 'guyfedwards/tmux-fzf-url'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tpm'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'