qertmates.blogg.se

Hammerspoon spoons
Hammerspoon spoons








hammerspoon spoons
  1. #HAMMERSPOON SPOONS FULL#
  2. #HAMMERSPOON SPOONS PLUS#

xht).Įxtensions/_coresetup/_a line 82Īn optional function that will be called when the Lua environment is being destroyed (either because Hammerspoon is exiting or reloading its config) text), Web site locations (.url), XHTML documents (.xhtml. For example, hs.urlevent will be triggered when the following filetypes are dropped onto the Dock Icon: HTML Documents (.html.

  • This callback will be triggered when ANY file type is dragged onto the Hammerspoon Dock Icon, however certain filetypes are also processed seperately by Hammerspoon.
  • hammerspoon spoons

    If multiple files are sent, this callback will be called once for each file.

    #HAMMERSPOON SPOONS FULL#

    The function should accept a single parameter, which will be a string containing the full path to the file that was dragged to the dock icon.If set, this callback will be called regardless of whether or not Hammerspoon shows its console window in response to a click (which can be enabled/disabled via hs.openConsoleOnDockClick()Įxtensions/_coresetup/_a line 49Īn optional function that will be called when a files are dragged to the Hammerspoon Dock Icon or sent via the Services menu.You can assign a new function to the variable to replace it with your own variant.Įxtensions/_coresetup/_a line 584Īn optional function that will be called when the Hammerspoon Dock Icon is clicked while the app is running extension) namespace, and object metatables. Hammerspoon provides a default implementation of this function, which can complete against the global Lua namespace, the 'hs' (i.e.Gathers tab completion options for the Console window Hs.completionsForInputString(completionWord) -> table of strings To check what the accessibility state has been changed to, you should call hs.accessibilityState from within your function.Įxtensions/_coresetup/_a line 66 The function will not receive any arguments when called.Variables accessibilityStateCallback SignatureĪn optional function that will be called when the Accessibility State is changed. It can also be loaded and processed by the `hs.doc` extensionĮxtensions/_coresetup/_a line 144Ī table containing read-only information about the Hammerspoon application instance currently running. This contains the full Hammerspoon API documentation and can be accessed in the Console using `help("someAPI")`. Typically `~/.hammerspoon/`Įxtensions/_coresetup/_a line 44Ī string containing the full path to the `docs.json` file inside Hammerspoon's app bundle. Functions - API calls offered directly by the extensionĪPI Documentation Constants configdir SignatureĪ string containing Hammerspoon's configuration directory.Constants - Useful values which cannot be changed.Contribute More detailsĪ "Spoon" is just a directory, right-click on it -> "Show Package Contents".Core Hammerspoon functionality Submodules Please read ~/.hammerspoon/private/afor more details.įinally press cmd + ctrl + shift + r to reload the configuration. There are more Spoons at official spoon repository (you may need a little config before using them). There are 15 built-in Spoons, learn about them at here. Then modify the file ~/.hammerspoon/private/a:ĭefine hspoon_list to decide which Spoons (a distributing format of Hammerspoon module) to be loaded. Config aria2 host and token in ~/.hammerspoon/private/a, then you're ready to go.Ĭp ~/.hammerspoon/a ~/.hammerspoon/private/a You need to run aria2 with RPC enabled before using this. These screenshots demostrate what awesome-hammerspoon is capable of. Press opt + ? to toggle the help panel, which will show all opt related keybindings.

    hammerspoon spoons

    If need help, press tab to toggle the keybindings cheatsheet.

    hammerspoon spoons

    #HAMMERSPOON SPOONS PLUS#

    Just press opt, plus A or C or R… to start. It has highly modal-based, vim-style keybindings, provides some functionality like desktop widgets, window management, application launcher, instant search, aria2 frontend. Awesome-hammerspoon is my configuration for Hammerspoon.










    Hammerspoon spoons