Skip to content

Expose AeroSpace callbacks via socket protocol #1514

@nikitabobko

Description

@nikitabobko

It should be possible to subscribe to AeroSpace callbacks via socket API without modifying the config

It should also be possible to receive callbacks for keyboard/mouse events (see use case 2. below)

Use cases

Alternatives

DistributedNotificationCenter.default().postNotificationName.

Pros: uniform macos eventbus notification framework across different apps
Cons: proprietary Apple API (much more likely to break than sockets)

It's not a final decision, but still prefer the socket approach, at least for uniformity

Dependencies

This issue depends on:

Open questions

The details of the protocol and how third-party app can subscribe to the events is an open question (should AeroSpace create separate sockets for each type of event? Or maybe socket files should be created by requests? e.g. aerospace create-notif-socket)

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature proposal

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions