Skip to content

Add Umbriel Shaders plugin - #164

Open
barrulus wants to merge 2 commits into
noctalia-dev:mainfrom
barrulus:add-umbriel-shaders
Open

barrulus wants to merge 2 commits into
noctalia-dev:mainfrom
barrulus:add-umbriel-shaders

Conversation

@barrulus

Copy link
Copy Markdown
Contributor

Summary

Add Umbriel Shaders (barrulus/umbriel-shaders, version 0.7.0): a Luau panel, bar widget and control-center shortcut for browsing the community Umbriel shader catalogue and applying shaders to Umbriel's effect and animation slots. It supports coordinated families, per-application border/window rules, animation timing overrides, standalone GLSL imports, one-level undo and clear all.

The plugin is panel-only (no service) and writes a single generated include, ~/.config/umbriel/noctalia-shaders.toml. The user's configuration pulls it in through [include.optional], and Umbriel reloads it on change. The plugin never calls config-replace. It edits the user's config.toml only when the user presses Add for me in the setup banner, and then only after writing config.toml.bak. Every change is checked with umbriel config validate. If Umbriel reports any new diagnostic, the previous file is restored.

Motivation

Give Umbriel users access to community effects and a personal shader library from Noctalia. Lemmy and Lysec approved this official submission in Discord.

This version replaces the earlier 0.6 design. The 0.6 submission ran to about 7k lines and used a wrapper configuration, a background service and recovery journals. This one is about 2k lines and relies on Umbriel's own include and reload behaviour.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Build / packaging

Related Issue

Requested and approved by Lemmy and Lysec in Discord. No public issue.

Testing

From this checkout (based on 8b99df3):

  • python3 .github/actions/validate-plugins/validate-plugins.py --profile official --root "$PWD": all 15 manifests pass.
  • python3 -m unittest discover -s .github/actions/validate-plugins -p test_validate_plugins.py: 178 tests pass.
  • noctalia plugins lint umbriel-shaders: 0 errors, 0 warnings.

In the development repository (barrulus/umbriel-shaders):

  • python3 tests/run.py: 6 Luau unit-test files, 111 checks. They cover generated-TOML rendering, include setup and diagnostic diffing, catalogue indexing and validation, selection and undo, and download planning.
  • StyLua check passes.

Network access and data handling:

  • The catalogue is fetched from the catalogue branch of noctalia-dev/community-umbriel-shaders and cached for a day.
  • Shader files and previews are downloaded from raw.githubusercontent.com at the catalogue's pinned commit.
  • Catalogue paths are validated: no .. or absolute paths, and the revision must be hex.
  • Downloads are written to a .part file and renamed into place when complete.
  • Only umbriel is invoked, via config validate and windows --json.

Manual: the author ran the full live checklist on Umbriel:

  • setup (Add for me), browse, search, filter and paging;
  • one shader of each kind, plus a family;
  • per-application rules, timing overrides and validation errors;
  • GLSL import, apply and remove;
  • undo, clear all, and persistence across panel reopen;
  • umbriel config validate afterwards.

Manual Coverage

  • Tested on Niri
  • Tested on Hyprland
  • Tested on Sway
  • Tested on another compositor: Umbriel (the plugin is Umbriel-specific)
  • Tested with different bar positions and density settings
  • Tested at different interface scaling values
  • Tested with multiple monitors

Screenshots / Videos

Screenshots of the panel will be added in a comment. The shipped 960×540 thumbnail is illustrative artwork, not a screenshot of shader output.

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • I self-reviewed the changes.
  • I added or updated translations/en.json, or this PR adds no new user-facing strings.
  • I did not edit non-English translation files unless this PR is explicitly for translation tooling, an import/export sync, or a maintainer-requested locale change.

Additional Notes

  • Only umbriel-shaders/ is added; catalog.toml is left to upstream's generator.
  • Selections stay active after the plugin is disabled. The README tells users to Clear all, or to remove the include line, before uninstalling.
  • Users upgrading from the experimental 0.6 builds should press Restore original in 0.6 first. Otherwise they can run umbriel config-replace "$HOME/.config/umbriel/config.toml".

@barrulus
barrulus marked this pull request as draft November 20, 2026 23:13
@barrulus

Copy link
Copy Markdown
Contributor Author
image image

@barrulus
barrulus marked this pull request as ready for review November 20, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant