Skip to content

v0.0.1

Pre-release
Pre-release

Choose a tag to compare

@tombell tombell released this 31 Oct 18:33
· 11 commits to main since this release

sborders draws configurable borders around macOS application windows, following focus and window movement without requiring a particular window manager.

Added

  • Run the border daemon with sborders start (the default command). It runs in the foreground without a Dock icon and stops with Ctrl-C, SIGTERM, or sborders stop.
  • Configure borders in ~/.config/sborders/config.jsonc or config.json, or pass --config <path>. Settings cover enabled, width (0.5 to 64 points), round or square style, activeColor and inactiveColor as #RRGGBB or #RRGGBBAA, and includeApps/excludeApps matchers by exact bundleID or processName. A JSON schema is included for editor completion.
  • Edit the configuration while the daemon runs. Saved changes reload automatically, and invalid edits keep the last valid settings and report the error in diagnostics. Check a file without starting the daemon using sborders validate.
  • Change settings at runtime with sborders set <property> <value> without writing the file. sborders reload adopts the file and clears runtime overrides.
  • Inspect the daemon with sborders query --windows, --config, or --diagnostics, which print JSON responses. Client commands accept --socket to target a daemon started with a different configuration path.
  • Track focus through WindowServer by default, which needs no Accessibility permission. The optional "focusMode": "accessibility" uses the focused Accessibility window and requires that permission.
  • Borders hide while Mission Control is open and for hidden, minimised, and native fullscreen windows.
  • Print the embedded version with sborders --version without starting the daemon.

The default focus mode relies on private WindowServer APIs, which can change between macOS releases; missing required functions stop startup. Desktop behaviour was checked on macOS 27.0. macOS 26 desktops, mixed-scale multi-display layouts, Stage Manager, sleep/wake, and the Accessibility focus mode have not been verified yet. Stop any other border daemon before trying sborders.

Requires macOS 26 or later. Source builds require Swift 6.2 or later.

Documentation