staryu.blogg.se

Hammerspoon hacks
Hammerspoon hacks








If you experience crashes with this version of Hammerspoon, please report them on GitHub.

  • Fixed: A previous crash fix in hs.hotkey was not effective, it should now be.
  • Fixed: hs.loadSpoon() will no longer cause a stack overflow crash if passed an empty Spoon name.
  • Fixed: hs.vox now handles VOX not running.
  • Fixed: hs.chooser subText field now truncates correctly.
  • Added: hs.serial.availablePortDetails().
  • Changed: hs.canvas should now handle Lua garbage collection better.
  • Fixed: hs.expose should now handle screen layouts better.
  • hammerspoon hacks

    Fixed: hs.http should no longer crash when its callbacks are called from a Lua corouting.Fixed: hs.httpserver should now be able to process text WebSocket messages properly.Added: hs.camera for enumerating/watching camera devices, and checking the “in use” status.Added: hs.audiodevice:inUse() to identify if an audio device (input or output) is currently being used.Added: hs.shortcuts and a Shortcuts action for executing Lua in Hammerspoon.Please open Issues on GitHub if this affects you. This should be transparent to users, but there may be some modules that are broken. Significant rearrangement of the Hammerspoon.app bundle.Fixed: hs.docs.hsdocs and hs.docs.markdown now work, allowing the “Help” button in the Console window to function.Changed: hs.keycodes now attempts to work around a change in macOS 12 that caused keycodes 93 and 94 to be listed incorrectly.Changed: hs.ipc callbacks now limit how many times they can be called recursively, to work around a potential crash.Changed: Attempted to work around a crash in hs.eventtap.Changed: hs.processInfo now contains information about CPU architecture and use of Rosetta2.Fixed: hs.streamdeck now correctly reads serial/firmware information on all models.Fixed: hs.mouse should now correctly determine if a pointing device is internal.Fixed: hs.viceCallback() should no longer crash in some circumstances.Fixed: hs.camera.isInUse() now works correctly.Fixed: hs.doc.builder can now be loaded again.Fixed: hs.audiodevice:setBalance() now works correctly.Added: hs.urlevent.mailtoCallback for handling mailto: URIs.Added: hs.streamdeck now supports the Mk2 model.Added: hs.http.put(), hs.http.asyncPut().Added: hs.razer to support Razer Tartarus V2.Default values of package.path/package.cpath should now work with Homebrew luarocks on Apple Silicon.Fixed: hs.camera.isInUse() no longer crashes.Changed: Several macOS SDK deprecations have been adapted to, across multiple modules.Added: hs.screen:getInfo() (may be helpful for distinguishing between multiple identical monitors).Added: hs.webview.toolbar:toolbarStyle().Fixed: Prevented a possible race condition in hs.webview when fading and deleting an object.Fixed: hs.http connection callbacks should no longer crash in some situations if Lua coroutines are being used.Lua search paths (package.path and package.cpath) have been updated to search in some additional locations.Fixed: hs.spaces no longer errors if Docker.app is installed.Fixed: hs.menubar no longer overlaps images and text, if both are set.Add support for Stream Deck Pedal #3409.

    #Hammerspoon hacks plus

  • Added support for Stream Deck Plus #3383.
  • Added support for Stream Deck Mini V2 #3378.
  • hs.fnutils.reduce takes an optional initial value #3363.
  • feat(spaces): add force arg for moveWindowToSpace #3298.
  • Added hs.serial:rts() and hs.serial:dtr() #3314.
  • Added hs.mouse.currentCursorType() #3265.
  • hs.http must follow redirects #1889 #3279.
  • Added functions to get application localization information #3191.
  • Added ability to save a hs.menubar position between reloads #3195.
  • Bump minimum requirements to macOS 11.0 #3312.
  • Allow hs.chooser query to still be forwarded when no matching string exists #3232.
  • hammerspoon hacks

    Fix windowHints bugs with utf8 chars #3243.Truncate Console scrollback history #3400.

    hammerspoon hacks

  • Spaces now finds Dock instead of Docker #3371.
  • Fix lua-objc mapping to handle high/low surrogate pairs in hs.styledtext #3356.
  • Fix hs.application.get() always returning nil #3216.
  • Fix bug where window switcher does not go away when caps lock is on #3238.
  • add DemoPro to SKIP_APPS_TRANSIENT_WINDOWS #3236.
  • Fix hs.spaces so it works when hs.spaces.screensHaveSeparateSpaces() is false #3196.
  • Fixed crash in hs.image.getExifFromPath() #3177.
  • hs.image:colorAt() now takes into account scale #3185.
  • hs.application.find() now has two additional parameters for controlling how the hint string is interpreted.
  • hammerspoon hacks

    You may get different results than before, but they should be more correct now.

  • The default behaviour of hs.application.find() has changed slightly.
  • Fix hs.application.get() interpreting Lua patterns #3425.
  • These functions have been added to support the new OBS Spoon
  • hs.hash now has binary-preserving variants of MD5/SHA1/SHA256/SHA512 (where the existing functions encode the hash to a hex string).







  • Hammerspoon hacks