Currently, window information and the respective events need to be acquired from the window manager program (e.g. yabai) to make displaying active windows/applications in the bar possible. I recently played around with some low level ways to be notified of the relevant events without resorting to accessibility permissions here: https://github.com/FelixKratz/JankyBorders
Specifically, I am thinking of a new event that is invoked when a user creates or closes a window on a specific space. I imagine the payload of the event being all currently open windows and their parent applications.
Possibly something like this:
SENDER: space_windows_changeINFO:
Currently, window information and the respective events need to be acquired from the window manager program (e.g. yabai) to make displaying active windows/applications in the bar possible. I recently played around with some low level ways to be notified of the relevant events without resorting to accessibility permissions here: https://github.com/FelixKratz/JankyBorders
Specifically, I am thinking of a new event that is invoked when a user creates or closes a window on a specific space. I imagine the payload of the event being all currently open windows and their parent applications.
Possibly something like this:
SENDER
:space_windows_change
INFO
:where the application names and their respective window counts for the space in question are listed.
This event would only work for macOS Ventura and up.