Commit graph dotfiles/tmux
Author SHA1 Message Date
Jonny Barnes
6b3ab420ad
Follow light/dark appearance in the tmux status bar
The status bar was five hardcoded tangere-dark colours, so in light mode the
pale #fdfdd9 text landed on a white background and became unreadable. That was
the real reason Auto appearance "never worked with the terminal setup" — ghostty
was switching correctly all along.

Split the colours into tmux-light.conf and tmux-dark.conf. The dark file is
extracted byte-exact from the previous config; the light file is the same layout
with each colour swapped for the tangere-light palette entry at the same index,
so roles are preserved (text on an accent uses the theme background, which
inverts from #1a2938 to #fdfdfa).

tmux 3.6+ learns the terminal's theme over OSC 2031, so this keys off the
appearance change itself rather than a schedule, and behaves identically whether
that came from Auto at sunrise/sunset or a manual toggle. Three hooks: the two
theme hooks react to a change, and client-attached covers a client attaching
mid-way, since those two only fire on a change. Sourcing is idempotent so the
overlap is harmless.

This replaces the dark-mode-notify launchd agent removed in 59d5622, which could
not have worked: it re-sourced .zshrc inside each shell, but the status bar
belongs to the tmux server.

Verified by round trip: flipping to Light switched #{client_theme} and applied
the light palette, and returning to Dark restored it. A running nvim does not
follow a live change (docs: the TUI sets 'background' on startup); noted in the
README.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-09 12:38:16 +01:00
Jonny Barnes
e1382f5c1f
Enable tmux focus-events
Claude Code CLI warns when focus-events is off. The option was already
present in the config but commented out from when it was first added.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 12:00:45 +01:00
Jonny Barnes
2d18961ebc
Stay in tmux of there are other windows when quitting 2026-03-28 16:50:34 +00:00
Jonny Barnes
f258813771
Allow tmux to let links be clickable 2026-03-22 18:00:10 +00:00
f108939b68
Improve tmux config
Mainly adds a better styling to the status bar
2026-01-18 17:27:15 +00:00
29c6bb1976
Tweak tmux conf
Main difference is new colours for status bar
2025-02-14 14:12:21 +00:00
746afe9c13
Fix error sourcing the fig tmux file if it does not exist 2023-06-23 18:05:37 +01:00
2e0bdab017 Fig tmux integration 2021-07-17 18:05:11 +01:00
690d859192 The screen-256color TERM info works better with some ncurses based apps 2018-01-08 12:13:43 +00:00
5b036180e8 Set a 256 color terminal 2017-12-11 16:19:47 +00:00
b0334c5e5b name windows from inex 1 not 0 2017-12-10 12:19:05 +00:00
9125b39d3e Add a tmux conf 2017-12-10 12:01:30 +00:00