Herbstmove is a small application that will wait for focus changes in X11 and move the mouse to the center of the newly focused window.
To be less annoying it will ignore focus-changes that happen within a predefined time after the last cursor movement.
It's written in Rust.
cargo build --release
./herbstmove
-
Error Handling is missing for most calls to X11.
-
Empty frames (in Herbstluftwm) aren't handled (herbstluft focuses the root window)
-
Test more window managers