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

hs.window.filter startup times #3723

Open
r2evans opened this issue Dec 9, 2024 · 2 comments
Open

hs.window.filter startup times #3723

r2evans opened this issue Dec 9, 2024 · 2 comments

Comments

@r2evans
Copy link

r2evans commented Dec 9, 2024

I'm adapting the AppWindowSwitcher spoon for some personal use-cases (i.e., windows without bundle-ids), and one tactic I'm doing is recording the creation/deletion of windows. However, this line takes around 10-15 seconds:

    hs.window.filter.new(true):subscribe(
        { hs.window.filter.windowCreated, hs.window.filter.windowDestroyed },
        myfun, true)

Is there a way to speed up this instantiation? I don't think coroutines are feasible, at least not from my user-code, since this is a single call where I cannot add/control things like yield.

Admitteldy I'm new to lua (not programming), so if I'm missing something obvious, my apologies. Thanks!

@megalithic
Copy link

SAME!

@QuantumLibet
Copy link

Maybe related: #3574

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants