From b5086863de60252932d8d47eb5271c1d608e9e26 Mon Sep 17 00:00:00 2001 From: bchanot Date: Fri, 9 Oct 2026 11:08:13 +0200 Subject: [PATCH] feat(tmux): status bar tabs centred (absolute-centre), index + padding + blank between tabs, current tab bold on a light pill; CHANGELOG Unreleased --- CHANGELOG.md | 1 + tmux.conf | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67e43a9..24ff8cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versioning: se - `install.sh` asks the gitflow push mode (`gitflow.autopush`, exactly `true` or `false`, Enter = `true`) and writes it to `~/.gitconfig`; an existing value is reused, `DOTFILES_GITFLOW_AUTOPUSH` presets it, any other preset aborts the install. - `gitconfig`: fixed `core.hooksPath = ~/.claude/githooks`. - `tmux.conf`: move panes between windows — `J`/`L` join the marked pane below/beside, `S` swaps it with the current one, `(`/`)` (repeatable) move the pane to the previous/next slot. +- `tmux.conf`: window tabs centred in the status bar (`absolute-centre`), with index, padding and a blank between tabs; the current tab bold on a light pill. ### Changed - `.githooks/post-commit` and `post-merge` fail closed on `gitflow.autopush`: an unreadable or non-boolean value means no push, with a named warning (was: silently treated as `true`). diff --git a/tmux.conf b/tmux.conf index dad5910..5755fbd 100644 --- a/tmux.conf +++ b/tmux.conf @@ -271,11 +271,12 @@ set -g @resurrect-dir "$XDG_CACHE_HOME/tmux/$TMUX_SOCKET_NAME" # ---------- set -wg mode-style bg=yellow,fg=black # selection: same accent as the status bar -set-window-option -g window-status-separator '' +set-window-option -g window-status-separator ' ' # one blank between tabs set -g status-position bottom set -g status-left-length 42 set -g status-right-length 80 -set -g status-justify left +# Tabs sit in the true middle of the screen, whatever status-left/right take. +set -g status-justify absolute-centre #setw -g status-style bg=black setw -g status-style bg=default @@ -283,8 +284,9 @@ set -g status-left '#{sep_st} λ #S #{sep_c}' # setw -g window-status-format '#{sep_d} #I #{sep_e} #W #{sep_f}' # setw -g window-status-current-format '#{sep_g} #I #{sep_h} #W #{sep_i}' # set -g status-right '#{brightwhite_fg} #h #{sep_b} %a %d/%m/%Y #{sep_a} %H:%M #{sep_on} : #{continuum_status} ' -setw -g window-status-format '#{sep_e} #W #{sep_f}' -setw -g window-status-current-format '#{sep_h} #W #{sep_i}' +# Tabs: index + name, padded; the current one is bold on a light pill. +setw -g window-status-format '#{sep_e} #I #W #{sep_f}' +setw -g window-status-current-format '#{sep_h} #I #W #{sep_i}' set -g status-right '#{sep_b} #h #{sep_e}#{sep_on} : #{continuum_status} '