Skip to content

Let commands set conditions that profiles match, such as the current Focus #81

Closed as not planned

Description

@Seb-GRAF

Problem

Profiles match appearance, power, displays and the focused app. Other context has no condition: the current Focus, being at the office, presenting. StableBar --profile NAME can switch from a script, but it pins that one profile instead of adding to automatic matching, and it shows in Customize as an unsaved edit.

Proposal

  • StableBar --context KEY=VALUE sets a value for the running bar, and --context KEY= clears it. Values aren't saved in the configuration.
  • A context condition matches them, for example { "name": "work", "when": { "context": { "focus": "Work" } } }. As with other conditions, everything listed must match. Customize → Profiles edits it like the other conditions.
  • --query and Diagnostics show the current values.
  • The README shows a recipe: on macOS 26, a Shortcuts automation such as "When Work Focus turns on" runs StableBar --context focus=Work with Run Shell Script. Shortcuts automations can also start at a time of day or on a Wi-Fi network, which covers those conditions without StableBar watching them.
  • Open question: should values survive a restart of StableBar?

Possible today

Partly. --profile pins one profile, which replaces automatic matching.

Related

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

Activity

  1. added
    enhancement
    on Oct 19, 2026
  2. added
    P3
    on Nov 8, 2026
  3. Seb-GRAF commented on Nov 11, 2026

    @Seb-GRAF
    CollaboratorAuthor

    --profile covers most of it, not worth a new condition type

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

    P3enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions