Skip to content

Enhance tmux window-status formatting with explicit colors, padding, and reset#4

Open
limijd wants to merge 1 commit intomasterfrom
codex/fix-tmux-active-tab-color-issue
Open

Enhance tmux window-status formatting with explicit colors, padding, and reset#4
limijd wants to merge 1 commit intomasterfrom
codex/fix-tmux-active-tab-color-issue

Conversation

@limijd
Copy link
Copy Markdown
Owner

@limijd limijd commented Mar 26, 2026

Motivation

  • Improve the visual appearance and consistency of tmux window labels by making foreground/background colors and padding explicit.
  • Ensure the status formatting for active and inactive windows does not bleed styles into the rest of the status bar by adding explicit style resets.
  • Preserve the existing behavior of showing a green ⚡ indicator when a window is @working or @running while making the indicator spacing and colors consistent.

Description

  • Updated setw -g window-status-format in both portable/tmux.conf and tmux/tmux.conf to include explicit #[fg=...] and #[bg=...] declarations, added surrounding spaces for padding, and appended #[default] to reset styles.
  • Updated setw -g window-status-current-format in both files to likewise include explicit foreground/background/bold attributes, padding, and #[default] reset for the current window label.
  • Adjusted the inline conditional lightning indicator styling to include a preceding space and consistent foreground resets so the indicator renders in green and returns to the configured label color cleanly.

Testing

  • No automated tests were run for this configuration-only change.

Codex Task

@uvlnxvm
Copy link
Copy Markdown

uvlnxvm commented Mar 26, 2026

fix tmux tab color

@uvlnxvm
Copy link
Copy Markdown

uvlnxvm commented Mar 26, 2026

fix color

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants