Prevent the screen from going to sleep Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/Caffeine.spoon.zip
Signature | Caffeine:bindHotkeys(mapping) |
---|---|
Type | Method |
Description | Binds hotkeys for Caffeine |
Parameters |
|
Returns |
|
Source | Source/Caffeine.spoon/init.lua line 32 |
Signature | Caffeine:setState(on) |
---|---|
Type | Method |
Description | Sets whether or not caffeination should be enabled |
Parameters |
|
Returns |
|
Source | Source/Caffeine.spoon/init.lua line 105 |
Signature | Caffeine:start() |
---|---|
Type | Method |
Description | Starts Caffeine |
Parameters |
|
Returns |
|
Source | Source/Caffeine.spoon/init.lua line 53 |
Signature | Caffeine:stop() |
---|---|
Type | Method |
Description | Stops Caffeine |
Parameters |
|
Returns |
|
Source | Source/Caffeine.spoon/init.lua line 74 |