omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Feature: Make omarchy.indicators extensible for third-party indicators

Open burninc0de opened this issue 3 months ago • 2 comments

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:

  1. omarchy plugin clone omarchy.indicators → burninc0de.indicators
  2. cp CleanKbd.qml burninc0de.indicators/indicators/CleanKbd.qml
  3. sed -i 's/"StayAwake" ]/"StayAwake", "CleanKbd" ]/' Indicators.qml
  4. Patch manifest.json barWidget.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.indicators or omarchy plugin clone omarchy.indicators wipes the patch (reverts Indicators.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 (or kinds: ["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) scans installedPlugins for that kind and dynamically adds them to defaultIndicatorEntries and the manifest.options list, loading the QML via Qt.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.

burninc0de avatar Aug 25 '26 07:08 burninc0de

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.

TonciZ avatar Sep 13 '26 17:09 TonciZ

+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.

konfuzz avatar Oct 09 '26 08:10 konfuzz