atareao revisó este gist 1 week ago. Ir a la revisión
1 file changed, 84 insertions, 1 deletion
tmux.conf
| @@ -1 +1,84 @@ | |||
| 1 | - | "# ==========================================================\n# tmux.conf — configuración moderna\n# ==========================================================\n\n# -- Opciones generales ------------------------------------\nset -g default-terminal \"tmux-256color\"\nset -ga terminal-overrides \",*256color*:Tc\"\nset -g base-index 1\nset -g pane-base-index 1\nset -g renumber-windows on\nset -g set-clipboard on\nset -g escape-time 10\nset -g history-limit 5000\n\n# -- Mouse -------------------------------------------------\nset -g mouse on\nset -g mode-keys vi\n\n# -- Prefix: Ctrl+a ----------------------------------------\nunbind C-b\nset -g prefix C-a\nbind C-a send-prefix\nbind a last-window\n\n# -- Split panes -------------------------------------------\nbind | split-window -h\nbind - split-window -v\nunbind '\"'\nunbind %\n\n# -- Navegación Alt+hjkl -----------------------------------\nbind -n M-h select-pane -L\nbind -n M-j select-pane -D\nbind -n M-k select-pane -U\nbind -n M-l select-pane -R\n\n# -- Resize con Alt+Shift+hjkl -----------------------------\nbind -n M-H resize-pane -L 5\nbind -n M-J resize-pane -D 5\nbind -n M-K resize-pane -U 5\nbind -n M-L resize-pane -R 5\n\n# -- Modo copy (Esc) ---------------------------------------\nbind -n Escape copy-mode\nbind -T copy-mode-vi Escape send -X cancel\nbind -T copy-mode-vi v send -X begin-selection\nbind -T copy-mode-vi y send -X copy-selection-and-cancel\nbind -T copy-mode-vi C-v send -X rectangle-toggle\nbind -T copy-mode-vi r send -X rectangle-toggle\n\n# -- Display-popup: lista sesiones -------------------------\nbind S display-popup -w 90% -h 90% \"tmux list-sessions | fzf --header='Sessions' | cut -d: -f1 | xargs tmux switch-client -t\"\n\n# -- Display-menu ------------------------------------------\nbind m display-menu -T \"#[align=centre fg=#cba6f7] tmux \" -x C -y S \\\n \" New Window\" w \"neww\" \\\n \" New Session\" s \"new-session\" \\\n \" ⛶ Kill Pane\" x \"kill-pane\" \\\n \" Kill Window\" X \"killw\" \\\n \" Reload\" r \"source ~/.config/tmux/tmux.conf\" \\\n \" Detach\" d \"detach\"\n\n# -- Recarga de config -------------------------------------\nbind r source-file ~/.config/tmux/tmux.conf \\; display \"Reloaded!\"\n\n# -- Renumeración automática -------------------------------\nset -g renumber-windows on\n\n# -- Respawn automático ------------------------------------\nset -g remain-on-exit on\nset -g pane-border-status top\nset -g display-panes-time 3000\n\n# -- Estilo Catppuccin Mocha (manual) ----------------------\n# Paleta: Hex xterm\n# Rosewater: #f5e0dc 223\n# Flamingo: #f2cdcd 218\n# Pink: #f5c2e7 219\n# Mauve: #cba6f7 183\n# Red: #f38ba8 210\n# Maroon: #eba0ac 216\n# Peach: #fab387 216\n# Yellow: #f9e2af 222\n# Green: #a6e3a1 156\n# Teal: #94e2d5 152\n# Sky: #89dceb 117\n# Sapphire: #74c7ec 117\n# Blue: #89b4fa 111\n# Lavender: #b4befe 147\n# Text: #cdd6f4 188\n# Subtext 1: #bac2de 146\n# Subtext 0: #a6adc8 145\n# Overlay 2: #9399b2 103\n# Overlay 1: #7f849c 102\n# Overlay 0: #6c7086 60\n# Surface 2: #585b70 59\n# Surface 1: #45475a 238\n# Surface 0: #313244 237\n# Base: #1e1e2e 236\n# Mantle: #181825 235\n# Crust: #11111b 233\n\nset -g status-left-length 100\nset -g status-right-length 100\nset -g status-style \"bg=#1e1e2e\"\n\nset -g message-style \"bg=#45475a,fg=#cdd6f4\"\n\n# Window\nsetw -g window-status-style \"fg=#6c7086,bg=#1e1e2e\"\nsetw -g window-status-current-style \"fg=#cba6f7,bg=#313244,bold\"\nsetw -g window-status-format \" #I:#W \"\nsetw -g window-status-current-format \" #I:#W \"\nsetw -g window-status-separator \"\"\n\nset -g status-left \"#[fg=#181825,bg=#cba6f7,bold] #S #[fg=#cba6f7,bg=#1e1e2e,nobold]\"\n\nset -g status-right \"#[fg=#a6e3a1] #(uname -r | cut -d. -f1,2) #[fg=#89b4fa] #(date +%H:%M) #[fg=#fab387]\"\n\n# -- TPM (Tmux Plugin Manager) -----------------------------\n# Descomentar si se usa TPM:\n# set -g @plugin 'tmux-plugins/tpm'\n# set -g @plugin 'tmux-plugins/tmux-sensible'\n# set -g @plugin 'tmux-plugins/tmux-yank'\n# run '~/.config/tmux/plugins/tpm/tpm'\n" | |
| 1 | + | # ========================================================== | |
| 2 | + | # tmux.conf — Configuración Moderna | |
| 3 | + | # ========================================================== | |
| 4 | + | ||
| 5 | + | # -- Opciones generales ------------------------------------ | |
| 6 | + | set -g default-terminal "tmux-256color" | |
| 7 | + | set -as terminal-features ",xterm-256color:RGB" | |
| 8 | + | set -g base-index 1 | |
| 9 | + | setw -g pane-base-index 1 | |
| 10 | + | set -g renumber-windows on | |
| 11 | + | set -g set-clipboard on | |
| 12 | + | set -g escape-time 10 | |
| 13 | + | set -g history-limit 10000 | |
| 14 | + | ||
| 15 | + | # -- Mouse & Vi Keys --------------------------------------- | |
| 16 | + | set -g mouse on | |
| 17 | + | set -g mode-keys vi | |
| 18 | + | ||
| 19 | + | # -- Prefix: Ctrl+a ---------------------------------------- | |
| 20 | + | unbind C-b | |
| 21 | + | set -g prefix C-a | |
| 22 | + | bind C-a send-prefix | |
| 23 | + | bind a last-window | |
| 24 | + | ||
| 25 | + | # -- Split panes (Preservando el directorio actual) -------- | |
| 26 | + | unbind '"' | |
| 27 | + | unbind % | |
| 28 | + | bind | split-window -h -c "#{pane_current_path}" | |
| 29 | + | bind - split-window -v -c "#{pane_current_path}" | |
| 30 | + | ||
| 31 | + | # -- Navegación Alt+hjkl ----------------------------------- | |
| 32 | + | bind -n M-h select-pane -L | |
| 33 | + | bind -n M-j select-pane -D | |
| 34 | + | bind -n M-k select-pane -U | |
| 35 | + | bind -n M-l select-pane -R | |
| 36 | + | ||
| 37 | + | # -- Resize con Alt+Shift+hjkl ----------------------------- | |
| 38 | + | bind -n M-H resize-pane -L 5 | |
| 39 | + | bind -n M-J resize-pane -D 5 | |
| 40 | + | bind -n M-K resize-pane -U 5 | |
| 41 | + | bind -n M-L resize-pane -R 5 | |
| 42 | + | ||
| 43 | + | # -- Modo copy (vi-style) ---------------------------------- | |
| 44 | + | bind -T copy-mode-vi v send-keys -X begin-selection | |
| 45 | + | bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel | |
| 46 | + | bind -T copy-mode-vi C-v send-keys -X rectangle-toggle | |
| 47 | + | ||
| 48 | + | # -- Display-popup: lista sesiones con fzf ----------------- | |
| 49 | + | bind S display-popup -E -w 90% -h 90% "tmux list-sessions | fzf --header='Sessions' | cut -d: -f1 | xargs tmux switch-client -t" | |
| 50 | + | ||
| 51 | + | # -- Display-menu ------------------------------------------ | |
| 52 | + | bind m display-menu -T "#[align=centre fg=#cba6f7] tmux " -x C -y S \ | |
| 53 | + | " New Window" w "new-window" \ | |
| 54 | + | " New Session" s "new-session" \ | |
| 55 | + | " ⛶ Kill Pane" x "kill-pane" \ | |
| 56 | + | " Kill Window" X "kill-window" \ | |
| 57 | + | " Reload" r "source-file ~/.config/tmux/tmux.conf" \ | |
| 58 | + | " Detach" d "detach-client" | |
| 59 | + | ||
| 60 | + | # -- Recarga de config ------------------------------------- | |
| 61 | + | bind r source-file ~/.config/tmux/tmux.conf \; display-message "Configuración recargada" | |
| 62 | + | ||
| 63 | + | # -- Estilo Catppuccin Mocha (manual) ---------------------- | |
| 64 | + | set -g status-left-length 100 | |
| 65 | + | set -g status-right-length 100 | |
| 66 | + | set -g status-style "bg=#1e1e2e" | |
| 67 | + | ||
| 68 | + | set -g message-style "bg=#45475a,fg=#cdd6f4" | |
| 69 | + | ||
| 70 | + | # Window status | |
| 71 | + | setw -g window-status-style "fg=#6c7086,bg=#1e1e2e" | |
| 72 | + | setw -g window-status-current-style "fg=#cba6f7,bg=#313244,bold" | |
| 73 | + | setw -g window-status-format " #I:#W " | |
| 74 | + | setw -g window-status-current-format " #I:#W " | |
| 75 | + | setw -g window-status-separator "" | |
| 76 | + | ||
| 77 | + | set -g status-left "#[fg=#181825,bg=#cba6f7,bold] #S #[fg=#cba6f7,bg=#1e1e2e,nobold]" | |
| 78 | + | set -g status-right "#[fg=#a6e3a1] #(uname -r | cut -d. -f1,2) #[fg=#89b4fa] #(date +%H:%M) #[fg=#fab387]" | |
| 79 | + | ||
| 80 | + | # -- TPM (Tmux Plugin Manager) ----------------------------- | |
| 81 | + | # set -g @plugin 'tmux-plugins/tpm' | |
| 82 | + | # set -g @plugin 'tmux-plugins/tmux-sensible' | |
| 83 | + | # set -g @plugin 'tmux-plugins/tmux-yank' | |
| 84 | + | # run '~/.config/tmux/plugins/tpm/tpm' | |
atareao revisó este gist 1 week ago. Ir a la revisión
1 file changed, 1 insertion
tmux.conf(archivo creado)
| @@ -0,0 +1 @@ | |||
| 1 | + | "# ==========================================================\n# tmux.conf — configuración moderna\n# ==========================================================\n\n# -- Opciones generales ------------------------------------\nset -g default-terminal \"tmux-256color\"\nset -ga terminal-overrides \",*256color*:Tc\"\nset -g base-index 1\nset -g pane-base-index 1\nset -g renumber-windows on\nset -g set-clipboard on\nset -g escape-time 10\nset -g history-limit 5000\n\n# -- Mouse -------------------------------------------------\nset -g mouse on\nset -g mode-keys vi\n\n# -- Prefix: Ctrl+a ----------------------------------------\nunbind C-b\nset -g prefix C-a\nbind C-a send-prefix\nbind a last-window\n\n# -- Split panes -------------------------------------------\nbind | split-window -h\nbind - split-window -v\nunbind '\"'\nunbind %\n\n# -- Navegación Alt+hjkl -----------------------------------\nbind -n M-h select-pane -L\nbind -n M-j select-pane -D\nbind -n M-k select-pane -U\nbind -n M-l select-pane -R\n\n# -- Resize con Alt+Shift+hjkl -----------------------------\nbind -n M-H resize-pane -L 5\nbind -n M-J resize-pane -D 5\nbind -n M-K resize-pane -U 5\nbind -n M-L resize-pane -R 5\n\n# -- Modo copy (Esc) ---------------------------------------\nbind -n Escape copy-mode\nbind -T copy-mode-vi Escape send -X cancel\nbind -T copy-mode-vi v send -X begin-selection\nbind -T copy-mode-vi y send -X copy-selection-and-cancel\nbind -T copy-mode-vi C-v send -X rectangle-toggle\nbind -T copy-mode-vi r send -X rectangle-toggle\n\n# -- Display-popup: lista sesiones -------------------------\nbind S display-popup -w 90% -h 90% \"tmux list-sessions | fzf --header='Sessions' | cut -d: -f1 | xargs tmux switch-client -t\"\n\n# -- Display-menu ------------------------------------------\nbind m display-menu -T \"#[align=centre fg=#cba6f7] tmux \" -x C -y S \\\n \" New Window\" w \"neww\" \\\n \" New Session\" s \"new-session\" \\\n \" ⛶ Kill Pane\" x \"kill-pane\" \\\n \" Kill Window\" X \"killw\" \\\n \" Reload\" r \"source ~/.config/tmux/tmux.conf\" \\\n \" Detach\" d \"detach\"\n\n# -- Recarga de config -------------------------------------\nbind r source-file ~/.config/tmux/tmux.conf \\; display \"Reloaded!\"\n\n# -- Renumeración automática -------------------------------\nset -g renumber-windows on\n\n# -- Respawn automático ------------------------------------\nset -g remain-on-exit on\nset -g pane-border-status top\nset -g display-panes-time 3000\n\n# -- Estilo Catppuccin Mocha (manual) ----------------------\n# Paleta: Hex xterm\n# Rosewater: #f5e0dc 223\n# Flamingo: #f2cdcd 218\n# Pink: #f5c2e7 219\n# Mauve: #cba6f7 183\n# Red: #f38ba8 210\n# Maroon: #eba0ac 216\n# Peach: #fab387 216\n# Yellow: #f9e2af 222\n# Green: #a6e3a1 156\n# Teal: #94e2d5 152\n# Sky: #89dceb 117\n# Sapphire: #74c7ec 117\n# Blue: #89b4fa 111\n# Lavender: #b4befe 147\n# Text: #cdd6f4 188\n# Subtext 1: #bac2de 146\n# Subtext 0: #a6adc8 145\n# Overlay 2: #9399b2 103\n# Overlay 1: #7f849c 102\n# Overlay 0: #6c7086 60\n# Surface 2: #585b70 59\n# Surface 1: #45475a 238\n# Surface 0: #313244 237\n# Base: #1e1e2e 236\n# Mantle: #181825 235\n# Crust: #11111b 233\n\nset -g status-left-length 100\nset -g status-right-length 100\nset -g status-style \"bg=#1e1e2e\"\n\nset -g message-style \"bg=#45475a,fg=#cdd6f4\"\n\n# Window\nsetw -g window-status-style \"fg=#6c7086,bg=#1e1e2e\"\nsetw -g window-status-current-style \"fg=#cba6f7,bg=#313244,bold\"\nsetw -g window-status-format \" #I:#W \"\nsetw -g window-status-current-format \" #I:#W \"\nsetw -g window-status-separator \"\"\n\nset -g status-left \"#[fg=#181825,bg=#cba6f7,bold] #S #[fg=#cba6f7,bg=#1e1e2e,nobold]\"\n\nset -g status-right \"#[fg=#a6e3a1] #(uname -r | cut -d. -f1,2) #[fg=#89b4fa] #(date +%H:%M) #[fg=#fab387]\"\n\n# -- TPM (Tmux Plugin Manager) -----------------------------\n# Descomentar si se usa TPM:\n# set -g @plugin 'tmux-plugins/tpm'\n# set -g @plugin 'tmux-plugins/tmux-sensible'\n# set -g @plugin 'tmux-plugins/tmux-yank'\n# run '~/.config/tmux/plugins/tpm/tpm'\n" | |