spoons

Last updated last month

Utility and management functions for Spoons Spoons are Lua plugins for Hammerspoon. See http://www.hammerspoon.org/Spoons/ for more information

API Overview

API Documentation

Methods

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` </span>

Type

Method

Description

Check if a given Spoon is installed.

Parameters

Returns

isLoaded

Signature

`hs.spoons.isLoaded(name) -> boolean

nil` </span>

Type

Method

Description

Check if a given Spoon is loaded.

Parameters

Returns

list

Signature

hs.spoons.list() -> table

Type

Method

Description

Return a list of installed/loaded Spoons

Parameters

Returns

newSpoon

Signature

`hs.spoons.newSpoon(name, basedir, metadata) -> string

nil` </span>

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

use

Signature

`hs.spoons.use(name, arg) -> boolean

nil` </span>

Type

Method

Description

Declaratively load and configure a Spoon

Parameters

Returns