A macOS utility that briefly highlights the active window when focused. Useful when switching apps on multiple displays, so you know which monitor ends up being focused.
It is implemented as a Spoon for Hammerspoon. You can customize the color of the highlight.
-
Install FocusHighlight.spoon using Git:
git clone https://github.com/dtinth/FocusHighlight.spoon.git ~/.hammerspoon/Spoons/FocusHighlight.spoon
-
Update Hammerspoon configuration file:
hs.loadSpoon("FocusHighlight") spoon.FocusHighlight:start()
Put these in your configuration file.
spoon.FocusHighlight.color = "#ffffff"
spoon.FocusHighlight.windowFilter = hs.window.filter.default
spoon.FocusHighlight.arrowSize = 256
spoon.FocusHighlight.arrowFadeOutDuration = 1
spoon.FocusHighlight.highlightFadeOutDuration = 1
spoon.FocusHighlight.highlightFillAlpha = 0.1