-
Notifications
You must be signed in to change notification settings - Fork 3
/
tmux.conf
96 lines (79 loc) · 2.8 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
# Activity
set -g set-titles on
set-option -g set-titles-string '#W: #T'
setw -g monitor-activity on
set -g visual-activity off
# Tabs
set -g base-index 1
# Previous window/tab
bind N previous-window
# Open new panes in current path
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# vim mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# Bind escape to copy mode
bind Escape copy-mode
# p = paste
unbind p
bind p paste-buffer
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
## Status bar design
# Undercurl
set -g default-terminal "${TERM}"
set-option -sa terminal-overrides ",${TERM}:RGB"
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
BG1="#16161e"
FG0="#C0CAF5"
FG1="#7aa2f7"
FG2="#a9b1d6"
FG3="#3b4261"
set -wg mode-style fg="$FG1",bg="$FG3"
# The panes {
set -g pane-border-style fg="$BG1",bg=default
set -g pane-active-border-style fg="$FG3",bg=default
set -g pane-border-lines "single"
# }
# Toogle statusbar
bind v set-option -g status
# The statusbar {
set -g status-justify left
set -g status-position top
set -g status-style fg="$FG1",bg="$BG1",dim
set -g status-left-style NONE
set -g status-right-style NONE
set -g status-left ''
set -g status-right " #[fg=$FG0,bold]%d/%m/%Y #[fg=$FG2,bold]%H:%M:%S"
set -g status-right-length 50
set -g status-left-length 20
set -g status-interval 1
set -g status off
# window status
setw -g window-status-activity-style "underscore,fg=$FG2,bg=$BG1"
setw -g window-status-style fg="$FG2",bg="$BG1"
setw -g window-status-bell-style fg=colour255,bg="$FG3"
setw -g window-status-current-style NONE
# Tab name as current folder name
setw -g window-status-format "#[fg=$BG1,bg=$BG1,nobold,nounderscore,noitalics]#[default] #I #W:#{b:pane_current_path} #F #[fg=$BG1,bg=$BG1,nobold,nounderscore,noitalics]"
setw -g window-status-current-format "#[fg=$BG1,bg=$FG3,nobold,nounderscore,noitalics]#[fg=$FG0,bg=$FG3,bold] #I #W:#{b:pane_current_path} #F #[fg=$FG3,bg=$BG1,nobold,nounderscore,noitalics]"
# }
# The messages {
set -g message-style fg="$FG1",bg="$FG3",bold
set -g message-command-style fg="$FG1",bg="$FG3"
# }
# 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 @plugin 'aserowy/tmux.nvim'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'