Set Terminal Focus to Follow the Mouse Cursor in Mac OS X
If you’re coming to Mac OS X from elsewhere in the unix & x11 world, you might be used to the focus of Terminal windows following your mouse cursor. With a little command line magic, we can enable this hidden feature in the Mac OS X Terminal.app too, here’s how:
Launch the Terminal and enter the following:
defaults write com.apple.terminal FocusFollowsMouse -string YES
You’ll now need to relaunch Terminal.app for changes to take effect.
If you don’t like it, you can disable cursor focus by changing YES to NO and reissuing the command:
defaults write com.apple.terminal FocusFollowsMouse -string NO
Then relaunch Terminal.app for the click-to-focus default setting to be enabled again.
Finally, If you’re wondering what my super awesome background picture is, it’s the 8-bit pixelated aurora wallpaper.