Optional integration that makes ChatGPT Community follow the active Omarchy color palette. It is disabled by default.
The feature:
- installs an Omarchy
themed/template in the user's configuration on first launch without overwriting an existing customized template; - asks
omarchy theme refreshto generate~/.config/omarchy/current/theme/codex-desktop.csswhen needed; - publishes the generated file URI through a launcher hook;
- injects a guarded renderer stylesheet loader that refreshes the CSS every five seconds and when the window regains focus.
It never edits Omarchy source under ~/.local/share/omarchy/.
Add the feature to the gitignored linux-features/features.json:
{
"enabled": ["omarchy-theme"]
}Then rebuild ChatGPT Community with ./install.sh, make install-native, or the
corresponding AppImage/Nix workflow. The generated app must be rebuilt after
changing feature selection.
On first launch the prelaunch hook installs:
~/.config/omarchy/themed/codex-desktop.css.tpl
If Omarchy cannot be refreshed automatically, run:
omarchy theme refreshSubsequent omarchy theme set ... and omarchy theme refresh operations update
the generated stylesheet, and an open Codex window picks it up within five
seconds.
CODEX_LINUX_OMARCHY_STYLESHEET=/absolute/path.cssoverrides the generated CSS file selected by the launcher.CODEX_OMARCHY_THEME_AUTO_REFRESH=0prevents the first-launch hook from invokingomarchy theme refresh.CODEX_OMARCHY_THEME_REFRESH_TIMEOUT_SECONDS=15changes the bounded wait for that refresh. Values must be whole seconds between 1 and 60.
The renderer loads the local file directly. Only select trusted user-owned CSS.
Remove omarchy-theme from features.json and rebuild. Declarative feature
resources and runtime hooks are removed automatically. The user-owned Omarchy
template remains so local customizations are not deleted; remove it manually if
desired, then run omarchy theme refresh.
node --test linux-features/omarchy-theme/test.jsManual acceptance checks:
- Launch Codex and confirm its palette matches
omarchy theme current. - Change themes or run
omarchy theme refresh. - Confirm the open Codex window updates within five seconds.
- Rebuild with the feature disabled and confirm Codex uses its normal theme.
- Codex CSS variables and utility selectors can drift with upstream webview releases; unsupported selectors simply stop affecting those elements.
- User CSS can obscure controls or reduce contrast. Only load trusted, user-owned CSS.
- Polling refreshes the local stylesheet URI every five seconds.
- Existing customized Omarchy templates are never overwritten automatically, so they may need manual updates when this feature's template changes.