![]() ![]() fn - a function which will be called with the freshly-loaded Spoon object as its first argument.The special string "default" can be given to use the Spoons defaultHotkeys variable, if it exists. If provided, will be passed as-is to the Spoon's bindHotkeys() method. hotkeys - a table containing hotkey bindings.For example, config = will result in spoon.answer being set to 42. config - a table containing variables to be stored in the Spoon object to configure it.repo - repository from where the Spoon should be installed if not present in the system, as defined in SpoonInstall.repos.The following keys are recognized (all are optional): ![]() arg - if provided, can be used to specify the configuration of the Spoon.If it is not installed, it will be installed using SpoonInstall:asyncInstallSpoonFromRepo() and then loaded. If the Spoon is already installed, it will be loaded using hs.loadSpoon(). name - the name of the Spoon to install (without the.Source/SpoonInstall.spoon/a line 49ĭeclaratively install, load and configure a Spoon Keep in mind that if you set this to true, Hammerspoon will block until all missing Spoons are installed, but the notifications will happen at a more "human readable" rate.If `true`, `andUse()` will update repos and install packages synchronously. Repository metadata needs to be stored under docs/docs.json, and the Spoon zip files need to be stored under Spoons/.ĭesc = "Main Hammerspoon Spoon repository", For now the repository is assumed to be hosted in GitHub, and the URL should be the main base URL of the repository. branch - Active git branch for the Spoon files.desc - Human-readable description for the repository.The key of each entry is an identifier for the repository, and its value is a table with the following entries:.Table containing the list of available Spoon repositories. Can be accessed to set the default log level for the messages coming from the Spoon. Methods - API calls which can only be made on an object returned by a constructorĪPI Documentation Variables logger Signature.Install and manage Spoons and Spoon repositories Hammerspoon docs: SpoonInstall docs » SpoonInstall ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |