# 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 set-titles-string "#S > #{pane_current_command} (#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}})" set -g set-titles-string "#S > #{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} (#T)" set -g mode-keys vi set -g history-limit 102400 set -sg escape-time 0 set -g set-clipboard on set -g mouse on set -gq utf8 on set -gq status-utf8 on set -wg wrap-search off set -g focus-events on # Ventanas set -wg 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 100 # Notificaciones set -g monitor-activity on set -g bell-action none # 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=colour0,dim set -g pane-active-border-style fg=colour0,dim set -g set-titles on set -g status-interval 60 set -g mode-style 'fg=#EEEEEE,bg=#75507B' set -g message-command-style bg=colour0,fg=colour13 set -g message-style 'bg=#222222,fg=white,italics' set -g status-style bg=default,fg=colour7 set -g status-left '' set -g status-right '#(txbar) #[fg=colour134]%a %d #[fg=colour167]%R #[fg=colour7]#S' 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 F12 set -g prefix2 M-a bind a send-prefix # Varios bind-key D detach-client 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-key k select-pane -U bind-key j select-pane -D bind-key h select-pane -L bind-key l select-pane -R bind-key M-S-Up swap-pane -s :. -t :.- \; select-pane -t :.- bind-key M-S-Down swap-pane -s :. -t :.+ \; select-pane -t :.+ # Ventanas bind-key C-j previous-window bind-key C-k next-window bind-key C-Up swap-window -t :-1 -d bind-key C-Down swap-window -t :+1 -d bind-key Tab choose-window bind-key Enter new-window bind-key Space last-window bind-key w choose-tree -Zw "swap-window -t '%%'" bind-key W command-prompt -I "#W" "rename-window '%%'" # 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' bind-key P capture-pane -S -32768 \; save-buffer "/tmp/printscreen" \; delete-buffer \; new-window -n "PRINTSCREEN" "$EDITOR /tmp/printscreen" # 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/apps/tmux-better-mouse-mode/scroll_copy_mode.tmux # vim: set ft=tmux: