True or False indicating whether or not Accessibility is enabled for Hammerspoon.shouldPrompt - an optional boolean value indicating if the dialog box asking if the System Preferences application should be opened should be presented when Accessibility is not currently enabled for Hammerspoon.Hs.accessibilityState(shouldPrompt) -> isEnabledĬhecks the Accessibility Permissions for Hammerspoon, and optionally allows you to prompt for permissions. The function should accept a single parameter, which will be a string containing the text that was dragged to the dock iconĮxtensions/_coresetup/_a line 74.serialising state, destroying system resources that will not be released by normal Lua garbage collection processes, etc)Įxtensions/_coresetup/_a line 57Īn optional function that will be called when text is dragged to the Hammerspoon Dock Icon or sent via the Services menu You do not need to fastidiously destroy objects you have created, this callback exists purely for utility reasons (e.g.This function should not perform any asynchronous tasks.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 separately by Hammerspoon.If multiple files are sent, this callback will be called once for each file.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.Gives you some numpad functionality and no chance of freeze up but still nowhere near ideal.Core Hammerspoon functionality Submodules In terms of DIP switches, using SW3 to disable the numlock just helps you avoid pressing it by accident and getting that key press freeze, for the record that's the best workaround I have found. Here is the same output in Karabiner's event viewer:ĮventType:KeyDown code:0x53 name:keypad_1 flags:NumPad misc:ĮventType:KeyUp code:0x53 name:keypad_1 flags:NumPad misc:ĮventType:KeyDown code:0x54 name:keypad_2 flags:NumPad misc:ĮventType:KeyUp code:0x54 name:keypad_2 flags:NumPad misc:ĮventType:KeyDown code:0x47 name:keypad_num_lock flags:Fn misc:ĮventType:KeyUp code:0x47 name:keypad_num_lock flags:Fn misc: (got this last out put by unplugging the numpad, only way to stop the key press) Gave the program a try, numlock doesn't seem to register at all and after pushing numlock for the second time I land up in that key down freeze I mentioned so no further keys after that. (I feel your pain, I avoided upgrading my OS for fear of Karabiner not working.) If I could se what you get I might be able to help.
0 Comments
Leave a Reply. |