116 lines
4.3 KiB
Plaintext
116 lines
4.3 KiB
Plaintext
# Opciones basicas
|
|
set -g default-terminal 'tmux-256color'
|
|
set -as terminal-overrides ',alacritty:Tc'
|
|
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
|
|
set -g history-limit 102400
|
|
set -g set-clipboard on
|
|
set -g mouse on
|
|
set -gq utf8 on
|
|
set -gq status-utf8 on
|
|
set -sg escape-time 10
|
|
|
|
# Ventanas
|
|
set -g automatic-rename on
|
|
set -g renumber-windows on
|
|
set -g allow-rename on
|
|
set -g base-index 1
|
|
|
|
# Panes
|
|
set -g pane-base-index 1
|
|
set -g aggressive-resize on
|
|
set -wg main-pane-width 85
|
|
|
|
# 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
|
|
|
|
# Vi
|
|
set -g mode-keys vi
|
|
set -g status-keys vi
|
|
|
|
# Statusbar
|
|
set -g pane-border-status bottom
|
|
set -g pane-border-format '──'
|
|
set -g automatic-rename-format '#{s/zsh//:pane_current_command}'
|
|
set -g pane-border-style fg=black
|
|
set -g pane-active-border-style fg=black
|
|
set -g set-titles on
|
|
set -g status-interval 60
|
|
set -g mode-style fg=black,bg=yellow
|
|
set -g message-command-style bg=colour0,fg=colour13
|
|
set -g message-style 'bg=#151515,fg=white,italics'
|
|
set -g status-style bg=default,fg=colour7
|
|
set -g set-titles-string "#S > #T"
|
|
set -g status-left ''
|
|
set -g status-right '#(txbar) #[fg=colour134]%a %d #[fg=colour167]%R'
|
|
set -g window-status-separator ' '
|
|
set -g window-status-current-style fg=colour3
|
|
set -g window-status-activity-style bg=default,fg=colour15,italics
|
|
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 C-b
|
|
unbind-key '"'
|
|
unbind-key %
|
|
unbind-key -
|
|
|
|
# Prefijo
|
|
set -g prefix M-a
|
|
bind-key M-a send-prefix
|
|
|
|
# Varios
|
|
bind-key D detach-client
|
|
bind-key T command-prompt -I "#W" "rename-window '%%'"
|
|
bind-key S command-prompt -I "#S" "rename-session '%%'"
|
|
bind-key M command-prompt -p man: "split-window -fh 'man %1'"
|
|
bind-key R source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Config Reloaded"
|
|
|
|
# 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}"
|
|
|
|
# Cerrar
|
|
bind-key x kill-pane
|
|
bind-key X kill-window
|
|
bind-key Z kill-session
|
|
bind-key Q kill-server
|
|
bind-key % delete-buffer
|
|
|
|
# Paneles
|
|
bind -n M-Up select-pane -U
|
|
bind -n M-Down select-pane -D
|
|
bind -n M-Left select-pane -L
|
|
bind -n M-Right select-pane -R
|
|
|
|
# Ventanas
|
|
bind-key Tab choose-window
|
|
bind-key Enter new-window
|
|
bind-key d display-panes
|
|
bind-key w choose-tree -Zw "swap-window -t '%%'"
|
|
bind-key s choose-tree -Zw "swap-pane -t '%%'"
|
|
bind-key m choose-tree -Zw "move-pane -t '%%'"
|
|
|
|
# Copy/paste. Seleccionar texto con el mouse lo copia automaticamente al clipboard
|
|
bind-key b list-buffers
|
|
bind-key P choose-buffer
|
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
|
|
|
# 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 ~/.local/bin/tmux-better-mouse-mode/scroll_copy_mode.tmux
|
|
|
|
# vim: set ft=tmux:
|