-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Trigger an event when focus changes #1
Labels
Comments
Not ideal but I ended up polling and emitting an event if the data changed from the previously cached data... https://github.com/bencevans/active-app-watcher#readme |
Python implementation https://stackoverflow.com/questions/23786289/how-to-correctly-detect-application-name-when-changing-focus-event-occurs-with for linux using xlib |
This was referenced Aug 3, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I imagine it would be something like:
With
win
being the same asactiveWin()
returns.No idea how to achieve this though as it would have to communicate with the binary somehow. Maybe spawn the native binary when someone subscribes to the events, and have the binary push to stdout for each event.
PR welcome 😀
The text was updated successfully, but these errors were encountered: