Skip to content

Implement on-mode-changed callback #390

@wierdbytes

Description

@wierdbytes

Good day,

I've been interested in AeroSpace for a while, and I've recently decided to try using it as a daily replacement for yabai.

I really like the concept of bindings, and I've decided to move all control functions into a separate mode (except for focus commands). This requires a convenient indication of this mode to remind me to exit back to the main mode - the built-in AeroSpace widget for the macOS menu bar handles this perfectly. However, my issue is that I use sketchybar, and the built-in menu bar automatically hides.

I've already implemented workspace display and switching for sketchybar using on-focus-changed / exec-on-workspace-change. However, when searching for similar callbacks about switching the binding mode, I couldn't find one.

Could you please advise if I might have missed this in the documentation? If so, I'd appreciate a link to the relevant section.

If such functionality is not currently implemented, I'd like to suggest expanding the list of callbacks to include a new one that would be triggered when the binding mode changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions