Skip to content

dainank/apple-click-through

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Apple Click-Through

The goal of this script is to provide a robust solution on MacOS for not requiring an explicit click to make window active, before UI elements inside can be clicked. It will essentially enable click-through with no noticeable effects to the user.

  1. brew install hammerspoon
  2. Launch hammerspoon
  3. Configure hammerspoon such that it has sufficient rights.
  4. Click on the hammer icon in the top-right menu bar and select Open Config.
    • This config is located at /Users/$USER/.hammerspoon/init.lua for me.
  5. Copy the following config into your hammerspoon config.
  6. Click on the hammer icon again and press Reload Config.
  7. tail -f /Users/$USER/hammerspoon_clickthrough.log
    • This will print the logs of click events to help verify whether the solution is working.

To Note

  • I hope to someday bundle this into a simple install script if it proves to really cause no issues in the long run.
  • If YOU face any issues or know improvements to make this even better, please let me know via the issues tab!
  • For any applications that are misbehaving with this script, you can exclude it by tweaking the config a bit.

History

The original GitHub Gist for this idea, can be found here, which was sparked by this discussion here.


Special Thanks

About

A solution on MacOS for not requiring an explicit click to make window active, before UI elements inside can be clicked

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages