Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Window Events #435

Closed
FelixKratz opened this issue Nov 9, 2023 · 0 comments
Closed

Native Window Events #435

FelixKratz opened this issue Nov 9, 2023 · 0 comments
Labels

Comments

@FelixKratz
Copy link
Owner

FelixKratz commented Nov 9, 2023

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:

{
  "space": 1,
  "apps": {
    "Spotify": 1,
    "kitty": 2
  }
}

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.

@FelixKratz FelixKratz added the enhancement New feature or request label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant