Implement `on-mode-changed` callback

#390

Issue Details

about 1 year ago
No assignee
featuregood-first-issue
wierdbyteswierdbytes
opened about 1 year ago
Author

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.