Feature: Make omarchy.indicators extensible for third-party indicators
Summary
Allow third-party plugins to contribute indicators to the existing omarchy.indicators hover-reveal group (Dnd, NightLight, StayAwake, Dictation, ScreenRecording, Reminder) without monkey-patching the cloned plugin.
Current situation
To add a custom indicator that sits politely with the built-ins (same center hover-reveal, same BarIndicator styling), a plugin has to:
omarchy plugin clone omarchy.indicators→burninc0de.indicatorscp CleanKbd.qml burninc0de.indicators/indicators/CleanKbd.qmlsed -i 's/"StayAwake" ]/"StayAwake", "CleanKbd" ]/' Indicators.qml- Patch
manifest.jsonbarWidget.schema[0].options
Example: JoeJoeflyn/omaclean does exactly this. It has to declare kinds: ["service"] and inject a BarIndicator into another plugin's directory.
This works, but it's fragile:
- Any
rm -rf burninc0de.indicatorsoromarchy plugin clone omarchy.indicatorswipes the patch (revertsIndicators.qml+manifest.json) - The fork diverges from upstream and needs manual re-patching after updates
- Two plugins doing the same thing would clobber each other
omarchy theme set is safe (only touches current/theme), but any plugin operation that touches the indicators clone is not.
I don't want a standalone bar-widget — that would be a separate bar block, not part of the grouped indicator UX. The grouping is the feature.
Proposal
Add a first-class extension point, e.g.:
- New kind
indicator(orkinds: ["indicator"]/provides: indicator):
{
"id": "omaclean",
"kinds": ["service", "indicator"],
"entryPoints": { "service": "Service.qml", "indicator": "CleanKbd.qml" },
"indicator": { "id": "CleanKbd", "label": "Clean keyboard", "description": "Lock keyboard for cleaning" }
}
omarchy.indicators(Indicators.qml/PluginRegistry.qml) scansinstalledPluginsfor that kind and dynamically adds them todefaultIndicatorEntriesand themanifest.optionslist, loading the QML viaQt.resolvedUrl(pluginDir + "/CleanKbd.qml")instead of only"indicators/" + id + ".qml".
No file copies, no sed, no fork to maintain. An omaclean-type plugin could ship Service.qml + CleanKbd.qml and just appear in the center cluster with NightLight/StayAwake.
Happy to help test or draft a PR if this direction sounds right.
Hit this in practice building a custom night-light control: had to ship a standalone bar-widget + popup instead of a simple indicator, since third-party plugins can't plug into omarchy.indicators today.
+1 — hit exactly this while building an audio-recorder bar trigger. I wanted a record/stop button that sits with the built-in indicators, and ended up doing the same dance: clone omarchy.indicators, drop an AudioRecording.qml into indicators, and patch the widget. So the proposed extension point would remove real friction for me too.