Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Adds validated, declarative terminal and Hyprland appearance settings while preserving the installed-theme security boundary.
Changes:
- Adds terminal opacity and blur template values.
- Validates
hyprland.tomland generates trusted Lua overrides. - Adds documentation and shell tests.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
bin/omarchy-theme-color |
Resolves terminal appearance settings. |
bin/omarchy-theme-set-templates |
Validates and renders declarative settings. |
default/themed/alacritty.toml.tpl |
Adds opacity and blur. |
default/themed/foot.ini.tpl |
Adds alpha and blur. |
default/themed/ghostty.conf.tpl |
Adds opacity and blur. |
default/themed/kitty.conf.tpl |
Adds opacity and blur. |
docs/theming.md |
Documents the new schema. |
test/shell.d/theme-declarative-settings-test.sh |
Tests validation and rendering. |
test/shell.d/theme-staging-test.sh |
Tests safe staging of Hyprland data. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 13593b5f87
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
This is the exact hole we hit with a git-installed extra theme. Cpunk (fork to add Quattro support, btw) depends on more than palette: a 3px 8-stop black/steel stripe and a Result after a successful install: Omarchy's default 2px static border. The stripe is technically there and basically invisible, and it does not spin. No warning that the chrome was dropped. A local/symlink copy of the same tree applies the Lua and looks right. That's the documented workaround, not a path extra themes can use.
schema = 1
[general]
gaps_in = 3
gaps_out = 3
border_size = 3
[[animations]]
name = "borderangle"
enabled = true
speed = 100
curve = "linear"
style = "loop"That matches the security boundary in #7884 (no Lua, binds, or rules from a clone) and is the difference between "installed" and "looks like the theme". Happy to test a build against Cpunk if useful. |
[Medium impact] No new actionable issue was established in the changes since the previous review. SummaryAdds declarative terminal and Hyprland appearance settings while keeping installed themes from supplying executable configuration.
|
Ghostty loads a config-file after the file that names it, so the theme's ghostty.conf overrides ~/.config/ghostty/config. Emitting background-opacity = 1.0 and background-blur = false for every theme silently replaced a user's own Ghostty opacity and blur on each theme switch. The generated Ghostty config now carries only the settings a theme declares (validly), and a comment otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed at 9b4e330 and pushed one fix; the branch is now at 90f164b. Ghostty: a user's own opacity and blur were overridden on every theme. Ghostty loads a 90f164b makes the generated Ghostty config carry only the settings a theme declares validly ( Greptile's two findings at 575d56b were already fixed by 9b4e330, and both are proved: on a worker, restoring the 575d56b Also checked by reading: the Tests, on a disposable Omarchy worker at 90f164b: Scope: this carries two features, terminal opacity/blur in No second opinion ran: the configured reviewer, Codex Medium, answers |
|
Updated against current quattro, preserving its window-level Glassy fade instead of restoring a second terminal opacity layer. Theme-declared opacity remains intact. Addressed the review: explicit Ghostty theme blur now installs its GTK stylesheet even with Glassy off, without changing other GTK apps. The regression checks both the stylesheet and isolation. Declarative schema/rendering coverage now runs through the existing theme-staging suite with a sourced fixture. Consolidated staging, template, transparency and CLI tests pass locally; full VM CI is running on the current head.
|
|
Current-head CI finished with all 421 files completing and one failure: i18n-startup-test.sh. The same file fails on unchanged upstream quattro at b99593e in its own run 42585717220, while the focused staging/renderer tests and current Greptile review pass. I have not changed unrelated i18n code or rerun the suite merely to seek a green result. Upstream baseline run: Current-head run:
|
|
Pushed 222507c with a further validation fix. The Both new regressions fail before their respective fixes and pass after them. The focused theme/staging/transparency checks and real Foot/Ghostty configuration validation pass. In a disposable VM, the generated candidate Lua loads successfully and a newly opened Foot window shows the declared rounding, border and rotating gradient. The original renderer rejects the loop declaration; its generated The final local aggregate is not all green: CLI completed, 420 of 421 shell files completed without failures, seven files contained skips, and Fresh hosted checks for this exact commit are running. Maintainer commits and existing fixes remain intact. The scope overlap with #8407 remains a maintainer decision; I have not changed or closed that PR.
|
Add declarative Hyprland and terminal theming
What is the value?
The security change in #7884 correctly stopped installed themes from supplying executable Lua and complete terminal configs. It also removed much of each theme's intended presentation.
This restores those appearance settings as data. Omarchy validates the data and generates the trusted configuration itself. Theme authors no longer need Lua for normal Hyprland styling or separate configs for terminal opacity and blur. Users still install and select themes exactly as they do today.
Related to #7942, includes the narrower Hyprland scope proposed in #8210, and complements the refusal notifications in #8393.
What changes
Themes can add three optional terminal settings to
colors.toml:Omarchy maps them through its existing Alacritty, Foot, Ghostty, and Kitty templates. Themes do not control the rest of the terminal config.
Themes that need more than colors can add an optional
hyprland.toml:The schema covers gaps, borders, rounding, opacity, dimming, blur, shadows, groupbars, bezier curves, and Hyprland's known animation leaves. Colors can be literals or references to keys in
colors.toml.omarchy-theme-set-templatesvalidates these values and adds them to thehyprland.luaOmarchy already generates. With nohyprland.toml, generation behaves exactly as before. A trusted local theme's hand-writtenhyprland.luastill takes precedence.Screenshots
Earlier testbed snapshot
This earlier Git-style test theme was applied in the Omarchy Testbed VM with terminal opacity
0.82, blur radius28, window rounding16, wider gaps, a three-pixel border, and a themed shadow:Declarative Hyprland and Foot settings in the earlier Omarchy Testbed run:
https://github.com/user-attachments/assets/0dab5cde-3f7d-401f-aebb-c82496b1c26c
Animation-validator captures — 222507c
Unedited 1280×800 full-desktop screenshots from a disposable VM running real Hyprland and Foot. These are not mockups or cropped panel images. The candidate source matches the animation-validation fix in
222507c6; the later i18n commit leaves that validator unchanged.Before — a427cea: the animation declaration is rejected, so the declared Hyprland appearance is not applied.
After — 222507c: the declaration is accepted, with the specified rounding, gaps, blur and three-pixel border.
Each capture uses a newly opened window. These still images do not demonstrate rotation, smoothness, or restarting a stopped loop on an already-open window. The separate native lossless recordings remain local.
Security boundary
hyprland.tomlis a strict, allowlisted TOML schema. Omarchy checks its types, numeric ranges, colors, curves, animation names, and styles before serializing anything to Lua. Invalid declarations warn and fall back to the normal generated Hyprland appearance.Installed themes still cannot provide Lua, complete terminal configs, commands, binds, monitor or input settings, rules, plugins, includes, environment values, or arbitrary paths. Theme installation, trust classification and executable-file filtering remain unchanged. Staging distinguishes bundled Lua from trusted local Lua so validated declarations can extend bundled appearance settings.
Current verification — db57614
The i18n watcher correction passed the expanded startup regression and a 200-cycle write/delete diagnostic. The feature-branch VM run passed CLI and all 421 shell test files, with checks skipped in seven files.
Hosted CI tested the merge with upstream
54abf723. The i18n regression passed, butnetwork-panel-runtime-test.shfailed: its fixture callsactivateRequested()without the modifier argument now required by upstream. Greptile, translation structure and visual-evidence checks passed. The overall hosted test suite is still red.Hosted test run:
https://github.com/omacom/omarchy/actions/runs/42850660627
Earlier verification — 222507c
loop/once, compatible window/workspace/layer styles, and no styles on leaves that do not support them. Enabled animations require a positive speed and a curve.update-lock-test.shfailed with a child-processwaiterror; one isolated run on unchanged current upstream passed. Its cause is unestablished. Earlier failed logs, including i18n catalog watching and three companion-checkout setup failures, are preserved. No unrelated update/i18n changes or timeout increases were made.Hosted Tests failed on this exact head in
i18n-startup-test.sh: deleting the language-selection file left Danish active instead of restoring English. Theme-staging checks passed, with Ghostty validation skipped because CI lacks Ghostty. The cause of the i18n failure is not established; the suite has not been rerun to seek a green result. The translation-structure check passed, and Greptile reported no new actionable findings.Hosted test run:
https://github.com/omacom/omarchy/actions/runs/42770302735
The terminal-opacity scope overlaps #8407; choosing or splitting that work remains a maintainer decision.
--[ Pi :: gpt-6-astra ]----- on behalf of:@OldJobobo