Utility and management functions for Spoons Spoons are Lua plugins for Hammerspoon. See http://www.hammerspoon.org/Spoons/ for more information
Signature | hs.spoons.bindHotkeysToSpec(def, map) -> none |
---|---|
Type | Method |
Description | Map a number of hotkeys according to a definition table Parameters:
Returns:
|
Signature | hs.spoons.isInstalled(name) -> table | nil |
---|---|
Type | Method |
Description | Check if a given Spoon is installed. Parameters:
Returns:
|
Signature | hs.spoons.isLoaded(name) -> boolean | nil |
---|---|
Type | Method |
Description | Check if a given Spoon is loaded. Parameters:
Returns:
|
Signature | hs.spoons.list() -> table |
---|---|
Type | Method |
Description | Return a list of installed/loaded Spoons Parameters:
Returns:
|
Signature | hs.spoons.newSpoon(name, basedir, metadata) -> string | nil |
---|---|
Type | Method |
Description | Create a skeleton for a new Spoon Parameters:
Returns:
|
Signature | hs.spoons.resourcePath(partial) -> string |
---|---|
Type | Method |
Description | Return full path of an object within a spoon directory, given its partial path. Parameters:
Returns:
|
Signature | hs.spoons.scriptPath([n]) -> string |
---|---|
Type | Method |
Description | Return path of the current spoon. Parameters:
Returns:
|
Signature | hs.spoons.use(name, arg) -> boolean | nil |
---|---|
Type | Method |
Description | Declaratively load and configure a Spoon Parameters:
Returns:
|