Skip to content

Focus Follows Mouse

Focus of the Terminal windows when the mouse cursor hovers over them. The focus change only works between the Terminal windows.

  • Tested on macOS:
    • Sonoma
    • Ventura
    • Monterey
  • Parameter type: bool

Set to false (default value)

By default, to switch between Terminal windows you should click on it or press on cmd + `.

bash
defaults write com.apple.Terminal "FocusFollowsMouse" -bool "false" && killall Terminal

Set to true

Focus follows the mouse cursor to any Terminal windows.

bash
defaults write com.apple.Terminal "FocusFollowsMouse" -bool "true" && killall Terminal

Read current value

bash
defaults read com.apple.Terminal "FocusFollowsMouse"

Reset to default value

bash
defaults delete com.apple.Terminal "FocusFollowsMouse" && killall Terminal