Skip to content

Instantly share code, notes, and snippets.

@cdeutsch
Created January 19, 2018 23:01
Show Gist options
  • Save cdeutsch/425f0149804d97892e7e46293b437628 to your computer and use it in GitHub Desktop.
Save cdeutsch/425f0149804d97892e7e46293b437628 to your computer and use it in GitHub Desktop.
Toggle iTerm FocusFollowsMouse
activate application "iTerm"
tell application "System Events" to tell application process "iTerm2"
-- open the preferences or bring to front (window 1)
keystroke "," using {command down}
delay 0.1
-- Change to the General tab
click button "Pointer" of toolbar 1 of window 1
delay 0.1
click checkbox "Focus follows mouse" of group 1 of window 1
delay 1
keystroke "w" using {command down}
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment