Use the menu bar
Use Spiti's menu bar item and plugin items, keep them tidy beside the notch, and run Spiti without a window.
Use Spiti's menu bar item
Spiti's own item is always in the menu bar while Spiti.app runs. Click it for Open Spiti, Home, Inbox, Command center, Settings… (⌘,) and Quit Spiti (⌘Q).
A dot beside the icon means the Inbox has unread notifications, and the menu shows Inbox with their count. While a plugin uses the microphone, the icon changes to a microphone and the menu names who is listening, with Stop listening.
Keep Spiti running without a window
Closing Spiti's last window doesn't quit it. The Dock icon goes away, and the menu bar items, global shortcuts, command center, floating windows and Island keep working. The Dock icon comes back when you open a workspace or Settings window. Quit Spiti from its menu bar item or with ⌘Q.
Use a plugin's item
Plugins can add live items to the menu bar, such as a countdown, a count or the next event. They stay up whether or not Spiti's window is open. Countdowns tick every second.
Click an item to open its panel or its menu. Right-click it to always get its menu, which ends with Open followed by the plugin's name, and Hide this item. A panel closes when you click elsewhere or press Escape.
Tidy a crowded menu bar
On a MacBook with a notch, macOS hides menu bar items that don't fit, without saying so. Turn on Combine plugin items into Spiti's menu in Settings → Menu bar. Plugin items then show as rows at the top of Spiti's own menu, with their live titles.
The Items card lists every plugin item with its plugin and a switch to show or hide it. Use the arrow buttons to change their order. ⌘-dragging an item in the menu bar moves it until Spiti quits.
To remove all of a plugin's items at once, turn off Menu bar items in its Surfaces card.
For plugin authors
Declare item ids and labels under views.menuBar in spiti.json, then list them in definePlugin({ menuBar }) with an icon and a title:
{ query }shows the query'stextfield.{ countdown: { query, field } }counts down to a time in milliseconds since the epoch;{ stopwatch: { query, field } }counts up from one. Spiti ticks them locally. When the field isnull, the item shows only its icon.
Add a popover that names a views.menuBar view, a menu of { action, label, icon?, input? } entries, "separator" and { query } sections that return menuBarRowsSchema rows, or both. Titles are cut at 24 characters. Inside a popover, useMenuBarPopover() from @spiti/sdk/ui returns close().