68 lines
1.9 KiB
Bash
68 lines
1.9 KiB
Bash
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
set -g @plugin 'catppuccin/tmux#v2.1.3'
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'sainnhe/tmux-fzf'
|
|
|
|
set -g @continuum-restore 'on'
|
|
set -g @resurrect-processes 'opencode nvim lazygit yazi'
|
|
|
|
# Remap prefix from Ctrl+b to Ctrl+Space
|
|
unbind C-b
|
|
set -g prefix C-Space
|
|
bind C-Space send-prefix
|
|
|
|
unbind r
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
set -g mouse on
|
|
|
|
set -g base-index 1
|
|
set -g pane-base-index 1
|
|
set -g pane-border-lines single
|
|
set -g pane-border-status top
|
|
|
|
# Faster escape sequences (better for Vim/Neovim)
|
|
set -s escape-time 10
|
|
|
|
# Increase scrollback buffer size
|
|
set -g history-limit 50000
|
|
|
|
# Allow extended keys (Kitty protocol passthrough)
|
|
set -s extended-keys on
|
|
set -as terminal-features "*:extkeys"
|
|
set -s extended-keys-format csi-u
|
|
|
|
# True color settings
|
|
set -g default-terminal "tmux-256color"
|
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
|
|
|
set -g status-interval 10
|
|
set -g allow-passthrough on
|
|
set -g set-clipboard on
|
|
|
|
set -ga update-environment TERM
|
|
set -ga update-environment TERM_PROGRAM
|
|
set -ga update-environment SSH_CONNECTION
|
|
|
|
set -g @catppuccin_flavor 'mocha'
|
|
set -g @catppuccin_pane_border_status "on"
|
|
set -g @catppuccin_pane_border_style "fg=#{@thm_overlay_0}"
|
|
set -g @catppuccin_pane_active_border_style "##{?pane_in_mode,fg=#{@thm_peach},##{?pane_synchronized,fg=#{@thm_mauve},fg=#{@thm_peach}}}"
|
|
set -g @catppuccin_window_status_style "basic"
|
|
set -g @catppuccin_window_current_number_color "#{@thm_peach}"
|
|
set -g @catppuccin_window_text " #W"
|
|
set -g @catppuccin_window_default_text " #W"
|
|
set -g @catppuccin_window_current_text " #W"
|
|
|
|
run ~/.tmux/plugins/tmux/catppuccin.tmux
|
|
|
|
set -g status-position top
|
|
set -g status-format[1] ""
|
|
set -g status 2
|
|
set -g status-justify "left"
|
|
set -g status-left " "
|
|
set -gF status-right "#[fg=#{@thm_crust},bg=#{@thm_teal}] #S / ##H "
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|