an awesomewm module automatically moves and centers your mouse cursor to the active (focused) window.
in your ~/.config/awesome folder
git clone https://github.com/basaran/awesomewm-micky
and then import in your rc.lua
require('awesomewm-micky')