torespaces.blogg.se

Cursor right hammerspoon
Cursor right hammerspoon















Hs.chooser:hideCallback() -> hs.chooser object If this parameter is omitted, the existing color will be returned color - An optional table containing a color specification (see hs.lor), or nil to restore the default color.Hs.chooser:fgColor(color) -> hs.chooser object If you're using a hs.styledtext object for text or subText choices, make sure you specify a color, otherwise your text could appear transparent depending on the bgDark setting.The results are then cached until this method is called again, or hs.chooser:refreshChoicesCallback() is called. If a function is given, it will be called once, when the chooser window is displayed.This is useful for storing UUIDs or other non-user-facing information, however, it is important to note that you should not store userdata objects in the table - it is run through internal conversion functions, so only basic Lua types should be stored. Any other keys/values in each choice table will be retained by the chooser and returned to the completion callback when a choice is made.valid - A boolean that defaults to true, if set to false selecting the choice will invoke the invalidCallback method instead of dismissing the chooser.image - An hs.image image object that will be displayed next to the choice.subText - A string or hs.styledtext object that will be shown underneath the main text of the choice.Each choice may also optionally contain the following keys:.text - A string or hs.styledtext object that will be shown as the main text of the choice.The table of choices (be it provided statically, or returned by the callback) must contain at least the following keys for each choice:.choices - Either a function to call when the list of choices is needed, or nil to remove any existing choices/callback, or a table containing static choices.Hs.chooser:choices(choices) -> hs.chooser object

cursor right hammerspoon

The text colors will not automatically change when you toggle the darkness of the chooser window, you should also set appropriate colors with hs.chooser:fgColor() and hs.chooser:subTextColor().The hs.chooser object or a boolean, true if the window is dark, false if it is light.If this parameter is omitted, the current setting will be returned beDark - A optional boolean, true to be dark, false to be light.Sets the background of the chooser between light and dark Hs.chooser:bgDark() -> hs.chooser object or boolean If you wish to attach the same toolbar to multiple chooser objects, see hs.webview.toolbar:copy. If the toolbarObject is currently attached to another window when this method is called, it will be detached from the original window and attached to the chooser. This method is a convenience wrapper for the hs. function. if a toolbarObject or explicit nil is specified, returns the hs.chooser object otherwise returns the current toolbarObject or nil, if no toolbar is attached to the chooser.If nil is supplied, the current toolbar will be removed toolbar - An hs.webview.toolbar object to be attached to the chooser.Get or attach/detach a toolbar to/from the chooser. Hs.chooser:attachedToolbar() -> hs.chooser object | currentValue

#Cursor right hammerspoon windows

  • As of macOS Sierra and later, if you want a hs.chooser object to appear above full-screen windows you must hide the Hammerspoon Dock icon first using: hs.dockicon.hide().
  • It should accept one parameter, which will be nil if the user dismissed the chooser window, otherwise it will be a table containing whatever information you supplied for the item the user chose.
  • completionFn - A function that will be called when the chooser is dismissed.
  • Hs.chooser.new(completionFn) -> hs.chooser object If you want to use this in addition to your own callback, you can call it as hs.chooser._defaultGlobalCallback(event)
  • There is a default global callback that uses the willOpen event to remember which window has focus, and the didClose event to restore focus back to the original window.
  • didClose - An hs.chooser has just been removed from the screen.
  • willOpen - An hs.chooser is about to be shown on screen.
  • A string containing the name of the event to handle.
  • This callback should accept two parameters:.
  • Methods - API calls which can only be made on an object returned by a constructorĪPI Documentation Variables globalCallback SignatureĪ global callback function used for various hs.chooser events.
  • Constructors - API calls which return an object, typically one that offers API methods.
  • This module was influenced heavily by Choose, by Steven Degutis ().
  • Graphical, interactive tool for choosing/searching data

    cursor right hammerspoon

    Hammerspoon docs: hs.chooser docs » hs.chooser















    Cursor right hammerspoon