# set leader key set -g prefix C-Space unbind-key C-b bind-key C-Space send-prefix # renumber windows when a window is closed set -g renumber-windows on # start numbering at 1 set -g base-index 1 setw -g pane-base-index 1 # start with mouse mode enabled set -g mouse on set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin 'tmux-plugins/tmux-pain-control' set -g @plugin 'sainnhe/tmux-fzf' # set -g @plugin 'dracula/tmux' set -g @plugin 'clanghans/dracula-tmux' # set -g @plugin 'tmux-plugins/tmux-logging' # set -g @logging-path "${XDG_DATA_HOME}/tmux/logging" # set-hook -g after-new-pane 'run ${XDG_CONFIG_HOME}/tmux/plugins/tmux-logging/scripts/start_logging.sh' # Config Dracula Theme # set -g @dracula-show-fahrenheit false # set -g @dracula-show-powerline false # set -g @dracula-show-location false # set -g @dracula-show-network false set -g @dracula-plugins "cwd git time continuum" # set -g @dracula-cpu-usage-colors "pink dark_gray" set -g @dracula-show-left-icon session # set -g @dracula-cpu-usage true # set -g @dracula-ram-usage true set -g @dracula-show-flags true set -g @dracula-refresh-rate 5 # time/date set -g @dracula-time-format "%Y-%m-%d %R" set -g @dracula-continuum-trigger true set -g @dracula-continuum-mode "countdown" # Continuum debugging # - the magic happens here # ~/.config/tmux/plugins/tmux-continuum/scripts/continuum_save.sh # - store location # ~/.local/share/tmux/resurrect/ # - put `tmux display-message "string"` for debugging message set -g @continuum-restore 'on' set -g @continuum-save-interval '15' set -g @resurrect-capture-pane-contents 'on' # move status line to top set -g status-position top set-option -g detach-on-destroy off set -g default-terminal "screen-256color" set -ga terminal-overrides ",xterm-256color*:Tc" set-option -ga terminal-overrides ',xterm-256color:Tc' ## -- key binding # # tmux-fzf TMUX_FZF_LAUNCH_KEY="C-f" bind Space run-shell -b "${XDG_CONFIG_HOME}/tmux/plugins/tmux-fzf/scripts/session.sh switch" # create session bind C-c command-prompt -p new-session 'new-session -s %%' # reload configuration bind r source-file "${XDG_CONFIG_HOME}/tmux/tmux.conf" \; display 'tmux.conf sourced' set-window-option -g mode-keys vi # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '${XDG_CONFIG_HOME}/tmux/plugins/tpm/tpm'