docs » hs.spoons
Utility and management functions for Spoons Spoons are Lua plugins for Hammerspoon. See http://www.hammerspoon.org/Spoons/ for more information
- Methods - API calls which can only be made on an object returned by a constructor
- bindHotkeysToSpec
- isInstalled
- isLoaded
- list
- newSpoon
- resource_path
- script_path
- use
| Signature | hs.spoons.bindHotkeysToSpec(def, map) |
|---|---|
| Type | Method |
| Description | Map a number of hotkeys according to a definition table |
| Parameters |
|
| Returns |
|
| Signature | hs.spoons.isInstalled(name) |
|---|---|
| Type | Method |
| Description | Check if a given Spoon is installed. |
| Parameters |
|
| Returns |
|
| Signature | hs.spoons.isLoaded(name) |
|---|---|
| Type | Method |
| Description | Check if a given Spoon is loaded. |
| Parameters |
|
| Returns |
|
| Signature | hs.spoons.list() |
|---|---|
| Type | Method |
| Description | Return a list of installed/loaded Spoons |
| Parameters |
|
| Returns |
|
| Signature | hs.spoons.newSpoon(name, basedir, metadata) |
|---|---|
| Type | Method |
| Description | Create a skeleton for a new Spoon |
| Parameters |
|
| Returns |
|
| Signature | hs.spoons.resource_path(partial) |
|---|---|
| Type | Method |
| Description | Return full path of an object within a spoon directory, given its partial path. |
| Parameters |
|
| Returns |
|
| Signature | hs.spoons.script_path() |
|---|---|
| Type | Method |
| Description | Return path of the current spoon. |
| Parameters |
|
| Returns |
|
| Signature | hs.spoons.use(name, arg) |
|---|---|
| Type | Method |
| Description | Declaratively load and configure a Spoon |
| Parameters |
|
| Returns |
|