Creates a semitransparent overlay to reduce screen brightness.
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/Shade.spoon.zip
| Signature | Shade.shadeIsOn |
|---|---|
| Type | Variable |
| Description | Flag for Shade status, 'false' means shade off, 'true' means on. |
| Source | Source/Shade.spoon/init.lua line 112 |
| Signature | Shade.shadeTransparency |
|---|---|
| Type | Variable |
| Description | Contains the alpha (transparency) of the overlay, from 0.0 (completely transparent to 1.0 (completely opaque). Default is 0.5. |
| Source | Source/Shade.spoon/init.lua line 86 |
| Signature | Shade:toggleShade() |
|---|---|
| Type | Function |
| Description | Turns shade on/off |
| Parameters |
|
| Returns |
|
| Source | Source/Shade.spoon/init.lua line 220 |
| Signature | Shade:bindHotkeys(map) |
|---|---|
| Type | Method |
| Description | Binds hotkeys for Shade |
| Parameters |
|
| Returns |
|
| Examples | |
| Source | Source/Shade.spoon/init.lua line 252 |
| Signature | Shade:init() |
|---|---|
| Type | Method |
| Description | Sets up the Spoon |
| Parameters |
|
| Returns |
|
| Source | Source/Shade.spoon/init.lua line 121 |
| Signature | Shade:start() |
|---|---|
| Type | Method |
| Description | Turn the shade on, darkening the screen |
| Parameters |
|
| Returns |
|
| Source | Source/Shade.spoon/init.lua line 176 |
| Signature | Shade:stop() |
|---|---|
| Type | Method |
| Description | Turn the shade off, brightening the screen |
| Parameters |
|
| Returns |
|
| Source | Source/Shade.spoon/init.lua line 202 |