Repository navigation
Say when an installed theme's files are refused - #8393
scottjones wants to merge 1 commit into
Conversation
omarchy-theme-set drops the files that would let a cloned theme run code, and says so on stderr. Switching themes from the menu discards stderr, so a theme whose hyprland.lua carried its rounding, shadows and blur simply came up looking wrong with nothing to explain it -- the settings are gone, the palette is not, and the theme reads as broken. Report the refusal where the switch happened. The notification only fires when something was actually refused, and it names the files, so the loss is attributable instead of mysterious.
There was a problem hiding this comment.
Pull request overview
Adds user-visible notifications when installed-theme files are refused during theme staging.
Changes:
- Sends a notification listing refused files.
- Tests notification and no-refusal behavior.
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 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
bin/omarchy-theme-set |
Reports refused theme files via notification. |
test/shell.d/theme-staging-test.sh |
Adds notification behavior coverage. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Yes it's better for ux |
omarchy-theme-setdrops the files that would let a cloned theme run code, and explains itself on stderr. Switching themes from the menu discards stderr, so the explanation never arrives.What that looks like in practice: a theme whose
hyprland.luacarried itsrounding,shadowandblurcomes up with none of them. The palette is applied, so the theme half-works — which reads as a broken theme rather than a deliberate refusal. Working out why means findingis_denied_installed_fileinomarchy-theme-set; the only trace on the machine is a stderr line nobody saw.This reports the refusal where the switch was made, naming the files. It fires only when something was actually refused, so it is not a notification on every theme change.
I hit this on three installed themes from one author, each of which put its decoration in
hyprland.lua. None of them contained a singleos.execute,io.orrequire— the refusal is correct policy and they are collateral, which is exactly why saying so matters.Two tests in
test/shell.d/theme-staging-test.sh, stubbingomarchy-notification-sendto record what would be sent: the hostile theme's refusal is announced and nameshyprland.lua, and a theme with nothing refused announces nothing. Verified by mutation — removing the call fails the first../test/clipasses andomarchy commands --checkpasses at 436 commands../test/shellreports 5 of 206 files failing (config,locale-env,snapper,theme-install-guards,unowned-system-paths); all five fail identically onquattrowithout this branch on the same machine, so none are from this change.Worth separating from this PR, but it is the reason I went looking: an installed theme currently has no declarative channel for visual identity at all.
hyprland.confis inert legacy, and the stagedhyprland.luais generated from Omarchy's template and carries border colours only. So rounding, shadows and blur are.luaor nothing, and.luais refused. #8011, #8264 and #8266 all propose declarative theme data for other integrations; the same shape would fit here. Happy to open a separate issue if that is useful.🤖 Generated with Claude Code