Last active
October 21, 2025 16:06
-
-
Save filipelperes/e0373414f1fe4c33886b1ad8942a0732 to your computer and use it in GitHub Desktop.
Tmux Config Backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================ | |
| # CONFIGURAÇÕES BÁSICAS | |
| # ============================================================================ | |
| # Shell padrão (fish) | |
| set-option -g default-shell /usr/bin/fish | |
| # Melhorar cores | |
| set -g default-terminal "screen-256color" | |
| set -ag terminal-overrides ',xterm-256color*:RGB' | |
| # Aumentar histórico de scroll | |
| set -g history-limit 10000 | |
| # Sem delay no ESC (útil para Vim/Neovim) | |
| set -sg escape-time 0 | |
| # Habilitar mouse | |
| set -g mouse on | |
| # Renumerar janelas automaticamente quando uma é fechada | |
| set -g renumber-window on | |
| # Iniciar janelas e painéis no índice 1 (não 0) | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # ============================================================================ | |
| # KEYBINDINGS | |
| # ============================================================================ | |
| # Definir Ctrl-a como segundo prefixo | |
| set -g prefix2 C-a | |
| bind C-a send-prefix -2 | |
| # Dividir painéis com | e - | |
| bind | split-window -h | |
| bind - split-window -v | |
| unbind '"' | |
| unbind % | |
| # Navegar painéis com Alt+setas (sem prefixo) | |
| bind -n M-Left select-pane -L | |
| bind -n M-Right select-pane -R | |
| bind -n M-Up select-pane -U | |
| bind -n M-Down select-pane -D | |
| # Recarregar configuração facilmente | |
| bind r source-file ~/.tmux.conf \; display "Configuração recarregada!" | |
| # ============================================================================ | |
| # PLUGINS (TPM - Tmux Plugin Manager) | |
| # ============================================================================ | |
| # Core plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| set -g @plugin 'tmux-plugins/tmux-yank' | |
| # UI/UX plugins | |
| set -g @plugin 'joshmedeski/tmux-nerd-font-window-name' | |
| set -g @plugin 'alexwforsythe/tmux-which-key' # prefix + space | |
| # System info plugins | |
| set -g @plugin 'tmux-plugins/tmux-cpu' | |
| set -g @plugin 'tmux-plugins/tmux-battery' | |
| set -g @plugin 'dreknix/tmux-primary-ip' | |
| # Tema | |
| set -g @plugin 'catppuccin/tmux#v2.1.3' | |
| # Gerenciamento de sessões | |
| set -g @plugin 'omerxx/tmux-sessionx' # prefix + o | |
| # ============================================================================ | |
| # TEMA CATPPUCCIN - CONFIGURAÇÕES | |
| # ============================================================================ | |
| # Configurações gerais do tema | |
| set -g @catppuccin_flavor "mocha" | |
| set -g @catppuccin_window_status_style "rounded" | |
| set -g @catppuccin_window_number_position 'right' | |
| set -g @catppuccin_window_status 'no' | |
| set -g @catppuccin_window_default_text '#W' | |
| set -g @catppuccin_window_current_fill 'number' | |
| set -g @catppuccin_window_current_text '#W' | |
| set -g @catppuccin_window_current_color '#{E:@thm_surface_2}' | |
| set -g @catppuccin_date_time_text ' %d.%m.%y %H:%M:%S' | |
| set -g @catppuccin_status_module_text_bg '#{E:@thm_mantle}' | |
| # Configurações da status bar | |
| set -g allow-rename off | |
| set -g status-position top | |
| set -g status-interval 1 | |
| set -g status-right-length 100 | |
| set -g status-left-length 100 | |
| # Status bar esquerda | |
| set -g status-left " " | |
| # set -g status-left '#{E:@catppuccin_status_session}' | |
| # Status bar direita | |
| set -gF status-right "#{E:@catppuccin_status_session}" | |
| set -agF status-right "#{E:@catppuccin_status_application}" | |
| set -agF status-right "#{@catppuccin_status_directory}" | |
| set -agF status-right "#{@catppuccin_status_user}" | |
| set -agF status-right "#{@catppuccin_status_host}" | |
| # set -agF status-right '#{E:@catppuccin_status_primary_ip}' | |
| set -agF status-right '#{E:@catppuccin_status_ctp_cpu}' | |
| set -agF status-right '#{E:@catppuccin_status_ctp_memory}' | |
| set -agF status-right "#{E:@catppuccin_status_battery}" | |
| set -ag status-right '#{E:@catppuccin_status_date_time}' | |
| # ============================================================================ | |
| # CUSTOM MODULES | |
| # ============================================================================ | |
| source -F '#{d:current_file}/custom_modules/ctp_cpu.conf' | |
| source -F '#{d:current_file}/custom_modules/ctp_memory.conf' | |
| # source -F '#{d:current_file}/custom_modules/primary_ip.conf' | |
| # ============================================================================ | |
| # INICIALIZAR TPM (manter sempre no final do arquivo) | |
| # ============================================================================ | |
| run '~/.tmux/plugins/tmux/catppuccin.tmux' | |
| run '~/.tmux/plugins/tpm/tpm' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %hidden MODULE_NAME="ctp_cpu" | |
| set -gq '@cpu_low_bg_color' '#{E:@thm_green}' | |
| set -gq '@cpu_medium_bg_color' '#{E:@thm_yellow}' | |
| set -gq '@cpu_high_bg_color' '#{E:@thm_red}' | |
| set -gq "@catppuccin_${MODULE_NAME}_icon" ' ' | |
| set -gq "@catppuccin_${MODULE_NAME}_color" '#{l:#{cpu_bg_color}}' | |
| set -gq "@catppuccin_${MODULE_NAME}_text" ' #{l:#{cpu_percentage}}' | |
| source -F '#{TMUX_PLUGIN_MANAGER_PATH}/tmux/utils/status_module.conf' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %hidden MODULE_NAME='ctp_memory' | |
| set -gq '@ram_low_bg_color' '#{E:@thm_green}' | |
| set -gq '@ram_medium_bg_color' '#{E:@thm_yellow}' | |
| set -gq '@ram_high_bg_color' '#{E:@thm_red}' | |
| set -gq "@catppuccin_${MODULE_NAME}_icon" ' ' | |
| set -gq "@catppuccin_${MODULE_NAME}_color" '#{l:#{ram_bg_color}}' | |
| set -gq "@catppuccin_${MODULE_NAME}_text" ' #{l:#{ram_percentage}}' | |
| source -F '#{TMUX_PLUGIN_MANAGER_PATH}/tmux/utils/status_module.conf' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %hidden MODULE_NAME='primary_ip' | |
| set -gq "@catppuccin_${MODULE_NAME}_icon" '#{l:#{primary_ip_icon}} ' | |
| set -gqF "@catppuccin_${MODULE_NAME}_color" '#{E:@thm_lavender}' | |
| set -gq "@catppuccin_${MODULE_NAME}_text" ' #{l:#{primary_ip}}' | |
| source -F '#{TMUX_PLUGIN_MANAGER_PATH}/tmux/utils/status_module.conf' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment