aboutsummaryrefslogtreecommitdiff
path: root/base/.tmux.conf
blob: 0db2d950aa54f0028445e45c1a97334de9a586cd (plain)
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
# ~/.tmux.conf — minimalista pero con chicha
# Sin plugins, sin TPM, todo nativo.

# --- Básicos sanos ---
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"   # true color en foot
set -g mouse on
set -g history-limit 50000
set -sg escape-time 0                # sin lag al pulsar ESC (vim-friendly)
set -g focus-events on
set -g renumber-windows on
setw -g mode-keys vi                 # copy-mode con teclas vi

# Empezar índices en 1 (0 está muy lejos del resto de teclas)
set -g base-index 1
setw -g pane-base-index 1

# --- Prefix: Ctrl-a en vez de Ctrl-b (más cómodo, estilo screen) ---
unbind C-b
set -g prefix C-a
bind C-a send-prefix

# --- Splits intuitivos, mantienen el path actual ---
unbind '"'
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

# --- Navegación de panes estilo vim (hjkl) ---
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Navegación sin prefix con Alt (rapidísimo, sin soltar nada)
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R

# Redimensionar panes con prefix + HJKL (mayúsculas, repetible)
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5

# Cambiar de ventana con Alt+número, sin prefix
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5

# Recargar config al vuelo
bind r source-file ~/.tmux.conf \; display-message "tmux.conf recargado"

# Copy-mode al estilo vim/vi con yank a portapapeles del sistema
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "wl-copy"
bind -T copy-mode-vi r send -X rectangle-toggle

# --- Estética: paleta oscura, minimal, sin relleno visual inútil ---
# Colores tipo terminal, coherentes con un prompt suckless
set -g status-position bottom
set -g status-justify left
set -g status-style "bg=#1a1b26,fg=#a9b1d6"
set -g status-interval 5

# Bordes de panel: sutiles, el activo resalta en verde (como tu prompt exit=0)
set -g pane-border-style "fg=#3b4261"
set -g pane-active-border-style "fg=#9ece6a"

# Ventana activa vs inactiva
setw -g window-status-current-style "fg=#1a1b26,bg=#9ece6a,bold"
setw -g window-status-current-format " #I:#W "
setw -g window-status-style "fg=#565f89,bg=#1a1b26"
setw -g window-status-format " #I:#W "

# Izquierda: sesión. Derecha: host + hora, sobrio, sin relojes cursis
set -g status-left-length 20
set -g status-left "#[fg=#1a1b26,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#1a1b26]"

set -g status-right-length 60
set -g status-right "#[fg=#565f89]#{?window_zoomed_flag,🔍 ,}#[fg=#bb9af7]#(whoami)@#h #[fg=#3b4261]│ #[fg=#e0af68]%H:%M "

# Indicador de actividad discreto, sin campanitas molestas
setw -g monitor-activity on
set -g visual-activity off
set -g bell-action none

# Zoom rápido de pane
bind z resize-pane -Z