Repository navigation
Sync the theme into tmux with one source-file instead of a client per variable - #15040
Merged
Merged
Conversation
… variable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchybot
added a commit
to anandude/omarchy
that referenced
this pull request
Oct 13, 2026
quattro now batches every tmux setting into one source-file (omacom#15040). The skip and clear paths move onto that queue: the stamp and its record are queued together, the pane reset is still written before the style unsets reach tmux, and the attached clients are read once rather than per check. The test/cli asserts now match the quoted lines the queue sends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
omarchy-theme-set-tmuxstarted one tmux client per variable per session: gum_env.lua sets ~116 variables, so with three sessions a theme switch forked ~580 tmux clients, plus fouromarchy-theme-colorruns for the mode, foreground, background and cursor.It now queues every
set-environment/set-optionas a tmux command line, quoted in-process, and hands them to the server in a singletmux source-file -. The palette is read once withomarchy-theme-color --all.source-filereports a failing line (say, a session closed meanwhile) and carries on with the rest, so a vanished session still only skips its own lines, as before. Values are single-quoted, so tmux takes$,~,#{}and;literally; a single quote in a value is closed and rejoined.Measurements
Scratch tmux server (
TMUX_TMPDIRin a temp dir), three sessions, a real 116-variable gum_env.lua:tmux show-environment -g,show-environment -t <session>andshow-options -gdumps are identical before and after.Verification
test/shell.d/theme-set-tmux-test.shruns the command against a throwaway tmux server: variables land globally and in every session, a value with',$HOME,~,#{...}and;arrives literally, window styles and cursor colour are set, and the whole sync uses at most a handful of tmux clients.test/cli's tmux stub now reads the sourced script;./test/clipasses../test/shell: the 7 failing files (agent accounts, config, shortcuts, input device, unowned paths) fail for environment reasons unrelated to tmux.🤖 Generated with Claude Code