Iterator over focused window change on Linux
Example usage:
The following will print the window that gets focused every time the active window changes.
window can be None if there is no active window.
use FocusMonitor;
Async
To enable AsyncFocusMonitor use features=["tokio"] in Cargo.toml:
focus_monitor = { version = "0.1", features = ["tokio"] }
And you can use it like this:
use AsyncFocusMonitor;
async