When you hover a window it will be raised to the front (with a delay of your choosing) and gets the focus. There is also an option to warp the mouse t

sbmpost / AutoRaise

submited by
Style Pass
2021-07-18 19:30:03

When you hover a window it will be raised to the front (with a delay of your choosing) and gets the focus. There is also an option to warp the mouse to the center of the activated window when using the cmd-tab key combination. See also https://stackoverflow.com/questions/98310/focus-follows-mouse-plus-auto-raise-on-mac-os-x

Note: The warp feature works accurately with the default OSX task switcher. If you prefer an alternative task switcher and are willing to accept that in some cases you may encounter an unexpected mouse warp, then replace the above make command with: make clean && make CXXFLAGS=-DALTERNATIVE_TASK_SWITCHER

AutoRaise can be used directly from the command line in which case it accepts command line parameters. The other binary, AutoRaise.app, can be used without a terminal window and relies on the presence of a configuration file. Note also that AutoRaise.app runs on the background and can only be stopped via "Activity Monitor" or the AppleScript provided near the bottom of this README.

The delay is specified in units of 20ms and the warp parameters are factors between 0 and 1. If you only would like to use the warp feature, simply set delay to 0. When warping the mouse, the scale parameter allows you to specify the mouse cursor size. To disable this, set it to the system configured scale (normally 1.0). If no parameters have been specified, AutoRaise disables warp and defaults to 40ms delay. To pass the command line parameters by means of a file, create either a ~/.AutoRaise file or a ~/.config/AutoRaise/config file. The file format is as follows:

Leave a Comment
Related Posts