152 lines
5.2 KiB
Plaintext
152 lines
5.2 KiB
Plaintext
# TERM
|
|
set -g default-terminal tmux-256color
|
|
set-option -ga terminal-overrides ",xterm-termite:Tc,xterm-256color:Tc"
|
|
set-option -ga terminal-overrides ",*col*:Tc"
|
|
|
|
# Opciones basicas
|
|
set -g set-clipboard on
|
|
set -g mouse on
|
|
set -gq status-utf8 on
|
|
setw -gq utf8 on
|
|
set -g escape-time 0
|
|
|
|
# Ventanas
|
|
set -g base-index 1
|
|
setw -g automatic-rename on
|
|
set -g renumber-windows on
|
|
|
|
# Panes
|
|
setw -g pane-base-index 1
|
|
setw -g aggressive-resize on
|
|
|
|
# Notificaciones
|
|
set -g monitor-activity on
|
|
set -g visual-activity off
|
|
set -g visual-bell off
|
|
set -g visual-silence off
|
|
set -g bell-action none
|
|
|
|
# Vim
|
|
set -g mode-keys vi
|
|
set -g status-keys vi
|
|
|
|
# Statusbar
|
|
setw -g automatic-rename-format "#{s/zsh//:pane_current_command}"
|
|
setw -g pane-border-style fg=colour8
|
|
setw -g pane-active-border-style fg=colour8
|
|
setw -g pane-border-status bottom
|
|
setw -g pane-border-format '─'
|
|
set -g set-titles on
|
|
set -g set-titles-string "#T"
|
|
set -g message-command-style bg=colour0,fg=colour13
|
|
set -g message-style bg=colour3,fg=colour0
|
|
set -g status-style bg=default,fg=colour7
|
|
set -g status-interval 1
|
|
set -g status-left ''
|
|
set -g status-right '#(txbar)#[fg=colour4] %R #[fg=colour10]#S'
|
|
set -g window-status-separator ' '
|
|
set -g window-status-current-style fg=colour3
|
|
set -g window-status-activity-style bg=colour0,fg=colour15
|
|
set -g window-status-format "#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} "
|
|
set -g window-status-current-format "#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} "
|
|
|
|
# Limpiar atajos
|
|
unbind-key -a
|
|
unbind-key C-b
|
|
unbind-key space
|
|
unbind-key '"'
|
|
unbind-key %
|
|
unbind-key q
|
|
|
|
# Prefijo
|
|
set -g prefix C-a
|
|
bind-key C-a send-prefix
|
|
|
|
# Varios
|
|
bind-key ? list-keys
|
|
bind-key d detach-client
|
|
bind-key : command-prompt
|
|
bind-key R respawn-window
|
|
bind-key T command-prompt 'rename-window %%'
|
|
bind-key S command-prompt 'rename-session %%'
|
|
bind-key r source-file $HOME/.tmux.conf \; display "Config Reloaded!"
|
|
|
|
# Cambiar de pane usando flecha con prefijo
|
|
bind-key Left select-pane -L
|
|
bind-key Right select-pane -R
|
|
bind-key Up select-pane -U
|
|
bind-key Down select-pane -D
|
|
|
|
# Trocar panes usando alt-flecha con prefijo
|
|
bind-key M-Left swap-pane -s {left-of}
|
|
bind-key M-Right swap-pane -s {right-of}
|
|
bind-key M-Up swap-pane -U
|
|
bind-key M-Down swap-pane -D
|
|
|
|
# Redimensionar
|
|
bind -r J resize-pane -D 2
|
|
bind -r K resize-pane -U 2
|
|
bind -r H resize-pane -L 2
|
|
bind -r L resize-pane -R 2
|
|
|
|
# Dividir
|
|
bind-key | split-window -h -c "#{pane_current_path}"
|
|
bind-key - split-window -v -c "#{pane_current_path}"
|
|
bind-key / split-window -fh -c "#{pane_current_path}"
|
|
bind-key _ split-window -fv -c "#{pane_current_path}"
|
|
bind-key X select-layout even-vertical
|
|
|
|
# Zoom
|
|
bind-key -n M-z resize-pane -Z
|
|
|
|
# Cerrar
|
|
bind-key q kill-window
|
|
bind-key x kill-pane
|
|
bind-key Z kill-session
|
|
|
|
# Ir a ventana
|
|
bind-key 1 select-window -t :1
|
|
bind-key 2 select-window -t :2
|
|
bind-key 3 select-window -t :3
|
|
bind-key 4 select-window -t :4
|
|
bind-key 5 select-window -t :5
|
|
bind-key 6 select-window -t :6
|
|
bind-key 7 select-window -t :7
|
|
bind-key 8 select-window -t :8
|
|
bind-key 9 select-window -t :9
|
|
bind-key 0 select-window -t :0
|
|
|
|
# Movimiento de ventanas
|
|
bind-key Enter new-window
|
|
bind-key Tab choose-window
|
|
bind-key S-left prev
|
|
bind-key S-right next
|
|
bind-key C-left swap-window -t -1
|
|
bind-key C-right swap-window -t +1
|
|
bind-key C-d display-panes
|
|
|
|
# Urlview
|
|
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
|
|
|
|
# Vim
|
|
bind-key [ copy-mode
|
|
bind-key ] paste-buffer
|
|
|
|
# Copy/paste. Seleccionar texto con el mouse lo copia automaticamente al clipboard
|
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -p -b"
|
|
bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
|
bind -n C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
|
bind-key C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
|
|
|
# FZF Locate
|
|
bind-key -n 'M-/' new-window -n locate \; send-keys "fl && tmux kill-window\n"
|
|
|
|
# Prender y apagar statusbar
|
|
bind-key & set-option -g status
|
|
|
|
# Mejor soporte para mouse
|
|
set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
|
|
set -g @scroll-speed-num-lines-per-scroll '3'
|
|
run-shell ~/bin/tmux-better-mouse-mode/scroll_copy_mode.tmux
|
|
|
|
# vim: set ft=tmux: |