Skip to content

dtinth/FocusHighlight.spoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

FocusHighlight.spoon

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.

Example

It is implemented as a Spoon for Hammerspoon. You can customize the color of the highlight.

How to use

  1. Install Hammerspoon

  2. Install FocusHighlight.spoon using Git:

    git clone https://github.com/dtinth/FocusHighlight.spoon.git ~/.hammerspoon/Spoons/FocusHighlight.spoon
  3. Update Hammerspoon configuration file:

    hs.loadSpoon("FocusHighlight")
    spoon.FocusHighlight:start()

Customization

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

About

A hammerspoon script that briefly highlights the active window when focused.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages