Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Sources/StableBar/App/HelpQuestion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ struct HelpQuestion: Identifiable {

## Where did my other apps' menu bar icons go?

The **Menu bar items** widget, a grid symbol, lists them. Rest the pointer on it, or click it, to see every item in the macOS menu bar as a row of icons, then click one to open its menu. It needs Accessibility access. If your bar doesn't have it, add **Menu bar items** with **Add widget** in **Settings → Bar**.
The **Menu bar items** widget, a grid symbol, lists them. Rest the pointer on it, or click it, to see every item in the macOS menu bar as a row of icons, then click one to open its menu. It needs Accessibility access. If your bar doesn't have it, add **Menu bar items** with **Add widget** in **Settings → Widgets**.

To keep an item you use often on the bar itself, right-click its icon in the row and choose **Show on Bar**; **Hide** takes an item out of the row. In **Settings → Bar**, the widget's **Content** tab arranges them all, and **As in the menu bar** there makes an item on the bar show what it shows in the menu bar, such as your next meeting, instead of its app's icon. See [Menu bar items](widgets.md#menu-bar-items).
To keep an item you use often on the bar itself, right-click its icon in the row and choose **Show on Bar**; **Hide** takes an item out of the row. In **Settings → Widgets**, the widget's **Content** tab arranges them all, and **As in the menu bar** there makes an item on the bar show what it shows in the menu bar, such as your next meeting, instead of its app's icon. See [Menu bar items](widgets.md#menu-bar-items).

## How do I show my workspaces on the bar?

Add **Workspaces** with **Add widget** in **Settings → Bar**. When you add it, it keeps the source your configuration names while that one is installed; otherwise it takes the first of AeroSpace, yabai, OmniWM, Rift and KiwiDesk that is installed and running, or your macOS Spaces when none is. The bar keeps that source and doesn't switch on its own, even when the window manager quits; to pick another, use **Settings → General → Workspaces**.
Add **Workspaces** with **Add widget** in **Settings → Widgets**. When you add it, it keeps the source your configuration names while that one is installed; otherwise it takes the first of AeroSpace, yabai, OmniWM, Rift and KiwiDesk that is installed and running, or your macOS Spaces when none is. The bar keeps that source and doesn't switch on its own, even when the window manager quits; to pick another, use **Settings → General → Workspaces**.

Some sources need one step on their side:

Expand All @@ -111,9 +111,9 @@ struct HelpQuestion: Identifiable {

## Can my laptop and my external monitor show different widgets?

Yes. StableBar draws a bar on every display, and you choose where each widget shows: select it in **Settings → Bar** and use **Shows on**, beside its name, to pick **All screens**, the laptop, landscape monitors, vertical monitors or **Hidden everywhere**. With more than one kind of screen connected, moving a widget moves it only on the kind of screen selected in **Settings → Bar**.
Yes. StableBar draws a bar on every display, and you choose where each widget shows: select it in **Settings → Widgets** and use **Shows on**, beside its name, to pick **All screens**, the laptop, landscape monitors, vertical monitors or **Hidden everywhere**. With more than one kind of screen connected, moving a widget moves it only on the kind of screen selected in **Settings → Widgets**.

For a whole different bar when you dock, give that screen setup its own bar: in **Settings → Bar**, open the menu beside the screen thumbnails and choose **Give it its own bar**. StableBar then switches bars when you connect or disconnect a screen.
For a whole different bar when you dock, give that screen setup its own bar: in **Settings → Widgets**, open the menu beside the screen thumbnails and choose **Give it its own bar**. StableBar then switches bars when you connect or disconnect a screen.

**Settings → Appearance** can also give each kind of screen its own bar height: choose the screen in **Editing**. See [Screen setups](layout.md#screen-setups).

Expand Down Expand Up @@ -141,7 +141,7 @@ struct HelpQuestion: Identifiable {

Keep your scripts in `~/.config/stablebar/widgets/` and make them executable. A script can print plain text, or one JSON object such as `{"text":"Ready","icon":"checkmark.circle"}` to add an SF Symbol, a color or a tooltip.

**Add widget** in **Settings → Bar** also offers **Script**; change its command with **More → Edit as JSON…**. See [Create a widget](create-a-widget.md).
**Add widget** in **Settings → Widgets** also offers **Script**; change its command with **More → Edit as JSON…**. See [Create a widget](create-a-widget.md).

## What can a package from the Store do on my Mac?

Expand Down
2 changes: 1 addition & 1 deletion Sources/StableBar/Settings/BarInspector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct BarInspector: View {
: "Group of \(groupMembers(group).map { names[$0.id] ?? $0.id }.formatted(.list(type: .and)))")
}
} else {
header(Image(systemName: "menubar.rectangle").font(.system(size: 18)), title: "Bar") { Text("The strip itself") }
header(Image(systemName: "display.2").font(.system(size: 18)), title: "Screens") { Text("Shared or per-screen bar") }
}
}
.padding(.horizontal, 20)
Expand Down
2 changes: 1 addition & 1 deletion Sources/StableBar/Settings/CustomizationWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ final class CustomizationWindow: NSObject, NSWindowDelegate {
}

enum CustomizationSection: String, CaseIterable, Identifiable {
case general = "General", widgets = "Bar", appearance = "Appearance", packages = "Store", profiles = "Profiles", diagnostics = "Status", help = "Help"
case general = "General", widgets = "Widgets", appearance = "Appearance", packages = "Store", profiles = "Profiles", diagnostics = "Status", help = "Help"

var id: Self { self }

Expand Down
10 changes: 5 additions & 5 deletions Sources/StableBar/Settings/SettingsSearch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ enum SettingsSearchResult: String, CaseIterable, Identifiable {
case .barLook: ("Bar background and border", .appearance, "Appearance › Bar", "look color fill gradient edges line corners")
case .barPlacement: ("Bar position, below the menu bar, offset and full-screen apps", .appearance, "Appearance › Bar",
"placement position top bottom edge display fullscreen full screen spaces")
case .screenSetups: ("Own bar for these screens", .widgets, "Bar › Screens", "screen setup monitor laptop vertical shared external")
case .screenSetups: ("Own bar for these screens", .widgets, "Widgets › Screens", "screen setup monitor laptop vertical shared external")
case .everyWidget: ("Look of every widget", .appearance, "Appearance › Widgets", "defaults font size color padding corners shadow px pt")
case .everyGroup: ("Look of every group", .appearance, "Appearance › Groups", "groups defaults background border corners padding spacing px pt")
case .widgetContent: ("Widget content", .widgets, "Bar › Widget › Content", "text icon clock date format package settings location units")
case .widgetStyle: ("Widget style", .widgets, "Bar › Widget › Style", "color gradient font size padding corners border px pt")
case .widgetBehavior: ("Widget clicks, screens and position", .widgets, "Bar › Widget › Behavior", "click popup hover screens display position tooltip hide")
case .addWidget: ("Add a widget", .widgets, "Bar › Add widget", "new widget clock battery calendar store package")
case .widgetContent: ("Widget content", .widgets, "Widgets › Widget › Content", "bar text icon clock date format package settings location units")
case .widgetStyle: ("Widget style", .widgets, "Widgets › Widget › Style", "bar color gradient font size padding corners border px pt")
case .widgetBehavior: ("Widget clicks, screens and position", .widgets, "Widgets › Widget › Behavior", "bar click popup hover screens display position tooltip hide")
case .addWidget: ("Add a widget", .widgets, "Widgets › Add widget", "bar new widget clock battery calendar store package")
case .theme: ("Theme", .appearance, "Appearance", "light dark automatic appearance wallpaper browse look save copy duplicate")
case .colors: ("Theme colors", .appearance, "Appearance › Theme colors", "tokens accent text surface palette contrast readable background")
case .glass: ("Liquid Glass", .appearance, "Appearance › Bar", "transparency see-through blur glass tint")
Expand Down
2 changes: 1 addition & 1 deletion Sources/StableBar/Settings/WidgetsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct WidgetsView: View {
ScrollView {
VStack(alignment: .leading, spacing: 0) {
ListRow(selected: editor.barItem == .bar) { _ in
WidgetRowLabel(symbol: "menubar.rectangle", name: "Bar", subtitle: "Its screens and setups", selected: editor.barItem == .bar)
WidgetRowLabel(symbol: "display.2", name: "Screens", subtitle: "Shared or per-screen bar", selected: editor.barItem == .bar)
}
.onTapGesture { select(.bar) }
.accessibilityAddTraits(.isButton)
Expand Down
2 changes: 1 addition & 1 deletion Sources/StableBar/Setup/SetupTour.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ struct SetupTourView: View {
.padding(.bottom, 16)
VStack(spacing: 10) {
if session.preferences.widgetSets.contains(.meetings) && session.preferences.deferMeetings {
Label("Meetings stays off. Turn it on in Settings → Bar when you're ready to allow Calendar access.", systemImage: "calendar")
Label("Meetings stays off. Turn it on in Settings → Widgets when you're ready to allow Calendar access.", systemImage: "calendar")
.font(.system(size: 12.5)).foregroundStyle(glass.ink.opacity(0.62))
.fixedSize(horizontal: false, vertical: true)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ In **Settings → Profiles**, add a named profile, turn it on or off, and choose

**What it changes** lists the profile’s values. Remove a change saved in your main file with its × button to restore inheritance. **Edit as JSON…** opens the configuration with an explicit **Apply** action; removing an inherited property there writes a null override. Included files stay unchanged. Removing a condition clears it, including an inherited condition.

**Edit the bar for this profile** opens Bar with a banner naming the profile being edited. The same banner stays visible in Appearance. **Editing** at the top of Bar and of Appearance does the same: choose a profile under **Profile** to edit it, or **No profile** to stop. Both leave out theme edits, which you edit in Appearance. Changes in Bar and Appearance, including Reset, save only in that profile and use the normal Undo/Redo history. The profile is previewed while editing, even if disabled, without saving a pin or changing its enabled state. **Done**, leaving Bar and Appearance, choosing another screen setup, or closing Settings restores the previous matching or pin. Widget order, theme selection and package settings apply to the whole bar; finish profile editing before changing them. **Preview now** pins the profile until **Stop previewing** resumes automatic matching; disabled profiles stay off outside editing.
**Edit the bar for this profile** opens Widgets with a banner naming the profile being edited. The same banner stays visible in Appearance. **Editing** at the top of Widgets and of Appearance does the same: choose a profile under **Profile** to edit it, or **No profile** to stop. Both leave out theme edits, which you edit in Appearance. Changes in Widgets and Appearance, including Reset, save only in that profile and use the normal Undo/Redo history. The profile is previewed while editing, even if disabled, without saving a pin or changing its enabled state. **Done**, leaving Widgets and Appearance, choosing another screen setup, or closing Settings restores the previous matching or pin. Widget order, theme selection and package settings apply to the whole bar; finish profile editing before changing them. **Preview now** pins the profile until **Stop previewing** resumes automatic matching; disabled profiles stay off outside editing.

Setup, the editor and the command line save changes into the main file's ordinary keys and never edit imported files. A widget defined in the main file, including inside one of its profiles, is changed, removed or reordered where it is defined. A widget from an include or package gets an entry in the main file's `widgetOverrides`; removing it sets `enabled` to `false`. Bar and default-style changes merge into `bar` and `defaults`. Untouched parts of the file keep their formatting and key order. An active profile still applies on top of these changes.

Expand Down
2 changes: 1 addition & 1 deletion docs/create-a-widget.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ dist/StableBar.app/Contents/MacOS/StableBar --config "$scratch/config.json"

A widget without `layout` draws a default layout made of the same blocks: a `row` of its icon (`symbol`) and text (`field`), at least a line of text tall even when it shows only the icon. Its digits all have the same width, so a number that changes, such as a CPU percentage, doesn't resize the widget. Battery draws a [`battery`](popups.md) block, like the battery in the macOS menu bar: its fill follows the charge and turns red at 10 % or less on battery power, a bolt shows it charging, and a plug shows the Mac on its adapter without charging. An orange badge appears when macOS recommends servicing the battery, the condition System Settings shows under Battery Health. Its percentage is in its tooltip, with the time left or until full and “Service recommended” when it applies. A Mac without a battery shows a plug and AC. Sound shows only its speaker icon, whose waves show the volume: none at zero, then one, two or three. The icon keeps the width of three waves, so the widget doesn't change size between levels. After the volume changes, the new volume fades in beside it for a moment, its digits rolling while it keeps changing, then fades out. Muting hides it at once. Hovering it shows a volume slider, with the volume, that changes the volume as you drag: in a tooltip under the widget, or beside the icon with [Open hover controls inline](#controls-on-hover). Inline, on the right of the bar the slider opens to the icon's left, so the icon stays under the pointer; elsewhere it opens to the right. A Sound widget with a `layout` of its own, including a **Display** choice other than its default, has no slider. The bar animates the Sound widget's width as the volume and the inline slider come and go, unless Reduce Motion is on. Other script and provider widgets whose output has a `value` show a 40 × 16 `graph` before them, and active-app widgets show the app's icon instead of a `symbol`. Workspaces and spacers keep their own views. A `layout` replaces the default layout, so block options work on built-in widgets too, for example an app name that scrolls when it doesn't fit: `"layout": { "type": "field", "field": "text", "scrollSpeed": 30, "style": { "maxWidth": 120 } }`.

For battery, sound, system and disk, **Settings → Bar → Content → Display** offers icon and value, icon only, value only, meter and value, label, value and meter, ring and value, or graph and value. Battery starts with icon only, its default, and its icon is its battery in every choice but ring and value, whose ring holds the battery's symbol; sound starts with icon, value on change, its default, and system with graph and value. Disk starts with icon and value, and has no graph, since it keeps no history. For system, **Shows** chooses **CPU**, its default, **Memory**, **CPU and memory** or **Memory and CPU**; each gets its own symbol and value, drawn as Display says, and memory's graph draws `series.memory`. This also works with named battery/audio/system/disk providers and package widgets. Choices use the existing `layout` configuration and support Undo; a hand-written layout stays marked **Custom layout** until you choose another display.
For battery, sound, system and disk, **Settings → Widgets → Content → Display** offers icon and value, icon only, value only, meter and value, label, value and meter, ring and value, or graph and value. Battery starts with icon only, its default, and its icon is its battery in every choice but ring and value, whose ring holds the battery's symbol; sound starts with icon, value on change, its default, and system with graph and value. Disk starts with icon and value, and has no graph, since it keeps no history. For system, **Shows** chooses **CPU**, its default, **Memory**, **CPU and memory** or **Memory and CPU**; each gets its own symbol and value, drawn as Display says, and memory's graph draws `series.memory`. This also works with named battery/audio/system/disk providers and package widgets. Choices use the existing `layout` configuration and support Undo; a hand-written layout stays marked **Custom layout** until you choose another display.

**Label, value and meter** puts a short label and a right-aligned percentage on one line, above a progress line. The label uses the `key` role and the line the `meter` role, so a theme styles both, and the column widens when a theme's font needs more room for 100%. System keeps CPU and memory in the selected order, each in its own column. This is a widget layout choice, so it stays selected when you change themes.

Expand Down
Loading
Loading