You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Let commands set conditions that profiles match, such as the current Focus #81
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.
Activity
Seb-GRAF commentedon Nov 11, 2026
--profilecovers most of it, not worth a new condition type