add velo launcher palette template#29
Open
joao-paulo-santos wants to merge 1 commit into
Open
Conversation
velo is a Wayland launcher (C fork of tofi) themed through palette JSON files. Its loader accepts noctalia's native format, so the template writes a single override palette and points velo at it. - palette.json: rendered from noctalia's active palette into velo's six-key JSON format (surface, onSurface, primary, onPrimary, secondary, outline) with dark and light variants - apply.sh: sets palette = "current-noctalia-override" and darkmode = true|false in velo's config, preserving the rest of the file. Creates the config if missing, appends lines if absent. No runtime change: velo reads its config at startup so the new palette applies on next launch.
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.
Summary
Adds a community template for velo, a fast plugin-extensible launcher for Wayland (C fork of tofi). When enabled, noctalia keeps velo's palette in sync with the active noctalia theme.
How it works
Three files in :
**** (template input) renders noctalia's six relevant color tokens (surface, onSurface, primary, onPrimary, secondary, outline) in velo's native JSON palette format with dark and light variants. Written to .
apply.sh(post-hook) runs on every theme apply and:palette = "current-noctalia-override"in~/.config/velo/config(rewrites existing line, appends if missing, creates file if absent)darkmode = true|falseto match noctalia's current modeThe rest of the config file is preserved. Same
sedrewrite pattern velo's own theme-switch plugin uses.template.tomlregisters the template under categorylauncher.Design notes
current-noctalia-override.json); velo's vendored palettes are untouchedprimary) and noctalia m-prefixed (mPrimary) keys, and ignores unknown keys