hammerspoon
hammerspoon copied to clipboard
hs.window.filter startup times
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!
SAME!
Maybe related: #3574
#3712