-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
153 lines (122 loc) · 6.34 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Terminal options
# set-option -g default-terminal "st-256color"
# set-option -g default-terminal "xterm-256color"
# set-option -g default-terminal "tmux-256color"
# set-option -g default-terminal "screen-256color"
# set-option -g default-terminal "tmux-256color"
# set-option -sa terminal-overrides ",tmux-256color:RGB"
# set-option -ga terminal-overrides ",tmux-256color:Tc"
# set-option -g default-terminal "screen-256color"
# set-option -sa terminal-overrides ",screen-256color:RGB"
# set-option -ga terminal-overrides ",screen-256color:Tc"
# alacritty terminal configuration
# set-option -g default-terminal "xterm-alacritty"
# set-option -sa terminal-overrides ",xterm-alacritty:RGB"
# set-option -ga terminal-overrides ",xterm-alacritty:Tc"
# set -as terminal-overrides ',xterm-alacritty*:ritm=\E[23m'
# set -as terminal-overrides ',xterm-alacritty*:rmso=\E[27m'
# set -as terminal-overrides ',xterm-alacritty*:sitm=\E[3m'
# set -as terminal-overrides ',xterm-alacritty*:smso=\E[7m'
# screen-256color terminal configuration
set-option -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",screen-256color:RGB"
set-option -ga terminal-overrides ",screen-256color:Tc"
# St terminal options configuration
# set-option -sa terminal-overrides ",st-256color:RGB"
# set-option -ga terminal-overrides ",st-256color:Tc"
# set -as terminal-overrides ',st*:sitm=\E[3m'
# set-option -g default-terminal "st-256color"
# Status bar.
# set-option -g status-style 'bg=#373b41,fg=white,bold,italics'
# set-option -g status-left-length 40
# set-option -g status-left '#[fg=yellow,bold,italics]#S § ' # SECTION SIGN (UTF-8: c2 a7)
# set-option -g status-right "#[fg=yellow,bold,italics]$USER@#h #[fg=magenta]%l:%M %p"
# set-option -g status-interval 5 # Default is 15.
#
# Status Bar
# set -g status-position bottom
# set -g status-justify left
# set-option -g status-style bg='#9900cc'
# set -g status-style 'bg=colour18 fg=colour137 dim'
# Cambia de color el background para la ventana seleccionada.
# set-window-option -g window-status-current-style 'bg=colour8, fg=#e6e6e6'
# set-window-option -g window-status-current-style 'bg=colour8, fg=#000000'
# setw -g window-status-current-format ' #(echo "#{window_index}:#{window_name}") '
# set -g status-style 'bg=#9900cc fg=#e6e6e6'
# set -g status-left ''
# set -g status-right '#[fg=#e6e6e6] #{pane_current_path} #[fg=#e6e6e6,bg=colour19] %d-%B '
# set -g status-right-length 50
# set -g status-left-length 20
# Basic config
set -g history-limit 10000
set -g allow-rename off
set-option -g focus-events on
set-option -sg escape-time 10
# Search mode VI
# set-window-option -g mode-keys vi
set -g mouse on
# set -g @plugin 'christoomey/vim-tmux-navigator'
# run '~/.tmux/plugins/tpm/tpm'
# Split window configuration
bind-key | split-window -h -c '#{pane_current_path}' # normally prefix-%
bind-key '\' split-window -h -c '#{pane_current_path}' # normally prefix-%
bind-key - split-window -v -c '#{pane_current_path}' # normally prefix-"<Paste>
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L; refresh-client -S"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D; refresh-client -S"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U; refresh-client -S"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R; refresh-client -S"
# bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l; refresh-client -S"
bind-key -T copy-mode-vi C-h select-pane -L
bind-key -T copy-mode-vi C-j select-pane -D
bind-key -T copy-mode-vi C-k select-pane -U
bind-key -T copy-mode-vi C-l select-pane -R
# bind-key -T copy-mode-vi C-\ select-pane -l
# Make resizing panes easier
bind-key < resize-pane -L 5
bind-key > resize-pane -R 5
bind-key + resize-pane -U 5
bind-key - resize-pane -D 5
bind-key = select-layout even-vertical
bind-key | select-layout even-horizontal
# Reload tmux config
bind-key r source-file ~/.tmux.conf
## COLORSCHEME: gruvbox dark (medium)
set-option -g status "on"
# default statusbar color
set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1
# default window title colors
set-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1
# default window with an activity alert
set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3
# active window title colors
set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1
# pane border
set-option -g pane-active-border-style fg=colour250 #fg2
set-option -g pane-border-style fg=colour237 #bg1
# message infos
set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1
# writing commands inactive
set-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1
# pane number display
set-option -g display-panes-active-colour colour250 #fg2
set-option -g display-panes-colour colour237 #bg1
# clock
set-window-option -g clock-mode-colour colour109 #blue
# bell
set-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg
## Theme settings mixed with colors (unfortunately, but there is no cleaner way)
set-option -g status-justify "left"
set-option -g status-left-style none
set-option -g status-left-length "80"
set-option -g status-right-style none
set-option -g status-right-length "80"
set-window-option -g window-status-separator ""
set-option -g status-left "#[bg=colour241,fg=colour248] #S #[bg=colour237,fg=colour241,nobold,noitalics,nounderscore]"
set-option -g status-right "#[bg=colour237,fg=colour239 nobold, nounderscore, noitalics]#[bg=colour239,fg=colour246] %Y-%m-%d %H:%M #[bg=colour239,fg=colour248,nobold,noitalics,nounderscore]#[bg=colour248,fg=colour237] #h "
set-window-option -g window-status-current-format "#[bg=colour214,fg=colour237,nobold,noitalics,nounderscore]#[bg=colour214,fg=colour239] #I #[bg=colour214,fg=colour239,bold] #W#{?window_zoomed_flag,*Z,} #[bg=colour237,fg=colour214,nobold,noitalics,nounderscore]"
set-window-option -g window-status-format "#[bg=colour239,fg=colour237,noitalics]#[bg=colour239,fg=colour223] #I #[bg=colour239,fg=colour223] #W #[bg=colour237,fg=colour239,noitalics]"
# vim: set ft=tmux tw=0 nowrap: