# Lua-style indexing set -g base-index 1 set -g pane-base-index 1 set-window-option -g pane-base-index 1 set-option -g renumber-windows on # Open panes in current directory bind '"' split-window -v -c "#{pane_current_path}" bind '%' split-window -h -c "#{pane_current_path}" # Set status bar to the bottom (default) set-option -g status-position bottom # Keybinds set -g mode-keys vi bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel # Avoid leaking sensitive windows due to preview by adding the N flag bind-key s choose-tree -ZsN bind-key w choose-tree -ZwN set -g mouse on bind-key r source-file ~/.config/tmux/tmux.conf # Navigate panes with Prefix + HJKL bind-key h select-pane -L bind-key j select-pane -D bind-key k select-pane -U bind-key l select-pane -R # Load plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'omerxx/tmux-floax' set -g @floax-bind '-n M-f' # Fix stupid catppuccin renaming windows to hostname for some reason set -g @catppuccin_window_text " #W " set -g @catppuccin_window_current_text " #W " set -g @catppuccin_flavor "mocha" set -g @catppuccin_window_status_style "basic" run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux set -g status-right-length 100 set -g status-left-length 100 set -g status-left " " set -g status-right "#{E:@catppuccin_status_session}" # Fix issue where ghostty images wouldn't render within tmux set-option -g allow-passthrough on # Load TPM, must be the last line if "test ! -d ~/.tmux/plugins/tpm" \ "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" run '~/.tmux/plugins/tpm/tpm'