tmux: fix styling

This commit is contained in:
2026-09-21 21:42:09 +02:00
parent edeee7debd
commit 0ca73bf029
2 changed files with 46 additions and 6 deletions
+12 -6
View File
@@ -42,6 +42,11 @@ bind x kill-pane
# Auto-bootstrap TPM if not installed
if "test ! -d ~/.config/tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm && ~/.config/tmux/plugins/tpm/bin/install_plugins'"
# Auto-install missing plugins when TPM exists but a plugin dir is absent
# (e.g. a new @plugin was added after the first bootstrap).
# NOTE: TPM clones `user/repo` to `plugins/repo`, so catppuccin/tmux -> plugins/tmux.
if "test ! -d ~/.config/tmux/plugins/tmux" \
"run '~/.config/tmux/plugins/tpm/bin/install_plugins'"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
@@ -67,16 +72,17 @@ set -g @catppuccin_window_current_text "#W"
set-environment -g TMUXIFIER_LAYOUT_PATH "$HOME/.tmuxifier/layouts"
# ── Initialize TPM (must be last line before status bar) ──────────────────────
run '~/.config/tmux/plugins/tpm/tpm'
# ── Status bar ────────────────────────────────────────────────────────────────
# (must come after TPM run so catppuccin variables are available)
# NOTE: #{E:@catppuccin_...} expands at display time, so this intentionally
# comes before `run tpm` (TPM requires `run tpm` to be the last line).
set -g status-position top
set -g status-left-length 100
set -g status-right-length 100
set -g status-left "#{E:@catppuccin_status_session}"
set -g status-right "#{E:@catppuccin_status_date_time}"
# ── Initialize TPM (must be last) ───────────────────────────────────────────
run '~/.config/tmux/plugins/tpm/tpm'