[!CAUTION] This script is WIP. There may be unforeseen issues.
This script enables click through on macOS, allowing you to click UI elements inside inactive windows without clicking the window first.
[!NOTE] Tested and working on MacOS 27 & 28. Prior versions may be compatible.
Can be done without cloning repo if desired.
brew install hammerspoon
hammerspoon.hammerspoon such that it has sufficient rights./Users/$USER/.hammerspoon/init.lua for me../install.sh from the repository root to install the module files into ~/.hammerspoon/clickthrough and patch your existing ~/.hammerspoon/init.lua safely.tail -f ~/Library/Logs/apple-click-through/main.log
Repeat step 4 from above.
Pull the latest changes from this repository and run ./install.sh --force to refresh the module files and reapply the loader line in your ~/.hammerspoon/init.lua.
[!TIP] The above requires quite some manual work, it is easier to clone the repository. For updates, you can then just run
git pull && ./install.sh --forceto get latest changes. Feel free to automate this one-liner every month or so for automatic latest greatest.
I hope to someday bundle this into a simple install script if it proves stable over time.
If you encounter any issues or have improvements in mind, please let me know via the issues tab! Include a relevant log snippet (see step 6 above for info).
For any applications that misbehave with this script, you can exclude them by tweaking the config.
The original GitHub Gist for this idea, can be found here, which was sparked by this discussion here.
We have a mirror on gidot, an open-source alternative to GitHub: https://gitdot.io/dainank/apple-click-through
... to all the people submitting issues and testing this script!
Hacker News (1)
Lua
87.9%
Shell
12.1%
[!CAUTION] This script is WIP. There may be unforeseen issues.
This script enables click through on macOS, allowing you to click UI elements inside inactive windows without clicking the window first.
[!NOTE] Tested and working on MacOS 27 & 28. Prior versions may be compatible.
Can be done without cloning repo if desired.
brew install hammerspoon
hammerspoon.hammerspoon such that it has sufficient rights./Users/$USER/.hammerspoon/init.lua for me../install.sh from the repository root to install the module files into ~/.hammerspoon/clickthrough and patch your existing ~/.hammerspoon/init.lua safely.tail -f ~/Library/Logs/apple-click-through/main.log
Repeat step 4 from above.
Pull the latest changes from this repository and run ./install.sh --force to refresh the module files and reapply the loader line in your ~/.hammerspoon/init.lua.
[!TIP] The above requires quite some manual work, it is easier to clone the repository. For updates, you can then just run
git pull && ./install.sh --forceto get latest changes. Feel free to automate this one-liner every month or so for automatic latest greatest.
I hope to someday bundle this into a simple install script if it proves stable over time.
If you encounter any issues or have improvements in mind, please let me know via the issues tab! Include a relevant log snippet (see step 6 above for info).
For any applications that misbehave with this script, you can exclude them by tweaking the config.
The original GitHub Gist for this idea, can be found here, which was sparked by this discussion here.
We have a mirror on gidot, an open-source alternative to GitHub: https://gitdot.io/dainank/apple-click-through
... to all the people submitting issues and testing this script!
Hacker News (1)
Lua
87.9%
Shell
12.1%