Highlight the focused window
This module can be useful to spatially keep track of windows if you have large and/or multiple screens, and are therefore likely to have several windows visible at any given time. It highlights the currently focused window by covering other windows and the desktop with either a subtle ("overlay" mode) or opaque ("isolate" mode) overlay; additionally it can highlight windows as they're shown or hidden via a brief flash, to help determine their location intuitively (to avoid having to studiously scan all your screens when, for example, you know you triggered a dialog but it didn't show up where you expected it).
By default, overlay mode is disabled - you can enable it with hs.window.highlight.ui.overlay=true
- and so are the window shown/hidden flashes - enable those with hs.window.highlight.ui.flashDuration=0.3
(or whatever duration you prefer). Isolate mode is always available and can be toggled manually via hs.window.highlight.toggleIsolate()
or automatically by passing an appropriate windowfilter (or a list of apps) to hs.window.highlight.start()
.
Signature | hs.window.highlight.ui |
---|---|
Type | Variable |
Description |
Allows customization of the highlight overlays and behaviour. |
Source | extensions/window/window_highlight.lua line 34 |
Signature | hs.window.highlight.start([windowfilterIsolate[, windowfilterOverlay]]) |
---|---|
Type | Function |
Description |
Starts the module |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/window/window_highlight.lua line 225 |
Signature | hs.window.highlight.stop() |
---|---|
Type | Function |
Description |
Stops the module and disables focused window highlighting (both "overlay" and "isolate" mode) |
Parameters |
|
Returns |
|
Source | extensions/window/window_highlight.lua line 275 |
Signature | hs.window.highlight.toggleIsolate([v]) |
---|---|
Type | Function |
Description |
Sets or clears the user override for "isolate" mode. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/window/window_highlight.lua line 198 |
© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.window.highlight.html