Skip to content

Combine several providers so one widget can show battery, network and volume together #692

Closed

Description

@Seb-GRAF

Problem

A widget reads one provider. A compact status widget that shows battery, network and volume together, like DuoBar's glyph (#641), needs three widgets, and a rule can't use one provider's data to style another's. A group puts the three in one background, but they stay separate widgets.

Proposal

A merge provider whose providers names other providers:

"providers": {
  "power": { "type": "battery" },
  "net": { "type": "network" },
  "sound": { "type": "audio" },
  "status": { "type": "merge", "providers": ["power", "net", "sound"] }
}
  • Its output holds each input's values, fields, lists and series under the input's name, such as power.percent, net.connection and sound.volume. A widget on it still reads one provider, so layouts, popups, hoverLayout and rules work as they do today: { "when": { "value": "power.percent", "below": 0.2 }, "state": "warning" }.
  • It has no text, icon or tooltip of its own; the widget's layout supplies them.
  • Its inputs run while a widget uses it, shared with any widget that uses them directly, and it publishes whenever one of them changes.
  • Loading rejects a name that isn't in providers, and a merge among the inputs.
  • An input that needs access, such as calendar, reports its access under its name, and the widget's status asks for that access as it does for the input on its own.
  • A widgets package can use it with native inputs, as it can use those inputs today.

This adds a provider type and one property. Configurations that don't use it are unchanged.

Possible today

No. A stream provider could print all three from one script, but a script can't read StableBar's native providers, and a widgets package can't run commands. Groups share a background, not data.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 16, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions