Sync Omarchy theme to Opencode - #11402
Open
p134c0d3 wants to merge 1 commit into
Open
Conversation
Generate an Opencode file theme from colors.toml on every theme switch and sync it to ~/.config/opencode/themes/omarchy.json, refreshing open TUIs live via SIGUSR2. Opt in once with omarchy-theme-set-opencode --activate. Reloads target interactive TUIs only: the background service (opencode serve --service) does not handle SIGUSR2, so signaling it would kill the service instead of refreshing the theme.
p134c0d3
force-pushed
the
opencode-theme-sync
branch
from
September 12, 2026 02:30
36b8d45 to
f371eb2
Compare
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.
Generates an Opencode file theme from
colors.tomlon every theme switch and syncs it to~/.config/opencode/themes/omarchy.json, so Opencode follows the Omarchy theme. Open sessions retint live via SIGUSR2 without a restart. Opt in once withomarchy-theme-set-opencode --activate(mirrors theclaude/pisync scripts).Reloads target interactive TUIs only: the background service (
opencode serve --service) does not handle SIGUSR2, so the previouskillall -SIGUSR2 opencodekilled the service on every theme switch instead of refreshing. Both the new sync script andomarchy-restart-opencodenow skip service processes.Notes:
.opencode/themes/mytheme.jsonupstream). The newer version-2 documented format with partial keys did not apply on 0.0.0-beta-19500 in testing (theme silently falls back to built-in), so this ships the complete key set that was verified to load and live-refresh.orange), sync + activation preserve unrelatedcli.jsonsettings, and a running TUI switched Mandalorian -> Tokyo Night -> Mandalorian purely via file sync + SIGUSR2 (confirmed by reading the TUI's emitted truecolor sequences)../test/cli(10 assertions) plustest/shell.d/opencode-refresh-test.shfor the TUI-only signaling of both scripts. Full./test/clipasses (126 ok);./test/shellshows only the pre-existing environmental failures (missing omarchy-pkgs checkout, non-executable snapper test).Screenshots of the running TUI under each theme to follow (attached via web UI).

