-
Notifications
You must be signed in to change notification settings - Fork 0
/
windowHighlight.lua
40 lines (33 loc) · 1.23 KB
/
windowHighlight.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- Window Highlight (highlight focused window)
-- Global settings
hs.window.highlight.ui.overlay = true
hs.window.highlight.ui.overlayColor = {0, 0, 0, 0.3}
hs.window.highlight.ui.isolateColor = {0, 0, 0, 0.9}
-- hs.window.highlight.ui.isolateColorInverted = {1,1,1,0.95}
-- hs.window.highlight.ui.frameWidth = 10
-- hs.window.highlight.ui.frameColor = {0,0,1,0.2}
-- hs.window.highlight.ui.frameColorInvert = {1,0.4,0,0.5}
-- hs.window.highlight.ui.flashDuration = 0
-- hs.window.highlight.ui.windowShownFlashColor = {0,1,0,0.8}
-- hs.window.highlight.ui.windowHiddenFlashColor = {1,0,0,0.8}
-- hs.window.highlight.ui.windowShownFlashColorInvert = {1,0,1,0.8}
-- hs.window.highlight.ui.windowHiddenFlashColorInvert = {0,1,1,0.8}
local module = {}
module.logger = hs.logger.new('windowHighlight.lua')
module.windowFilter = hs.window.filter.new():setOverrideFilter{
visible = true,
fullscreen = false,
allowScreens = '-1,0',
currentSpace = true
}
module.start = function()
module.logger.i("Starting Window Highlight")
hs.window.highlight.start(nil, module.windowFilter)
return module
end
module.stop = function()
module.logger.i("Stopping Window Highlight")
hs.window.highlight.stop()
return module
end
return module