github Hammerspoon/Hammerspoon2 1.0.0-beta.3
Hammerspoon 2 1.0.0 Beta 3

pre-releaseone hour ago

Added

  • Spoons that export bindings get an unbindHotkeys() method, to unbind some or all of the hotkeys bound with bindHotkeys() (#451)
  • hs.canvas.create(), setFrame(), setTopLeft() and hs.ui.window() accept an HSRect/HSPoint, so a window's or screen's frame can be passed directly (#454)
  • hs.window.forID(id), which returns the window with that ID (or null), like v1's hs.window.get() (#457)
  • Menu items in hs.menubar menus and hs.chooser context menus can show a keyboard shortcut with a shortcut field, e.g. shortcut: "⇧⌘N", which chooses the item while the menu is open (it is not a system-wide hotkey; the Dock ignores it in hs.dockicon menus) (#456)

Changed

  • hs.canvas and hs.ui.window() now place windows with y = 0 at the top of the primary screen, matching hs.screen, hs.window and v1. Scripts that converted from bottom-up coordinates need to drop that conversion (#454)
  • The rect passed to hs.ui.window() now covers the whole window, including its title bar, like hs.window's frame (#454)
  • hs.task.runAsync() and hs.task.shell() now reject with an Error (with a useful message) when the command fails, still carrying exitCode, stdout, stderr and reason (#458)

Fixed

  • HSImage.croppedCopy() now measures y from the top of the image, matching screen and window frames, instead of from the bottom (#452)
  • A canvas placed over the menu bar is no longer pushed down below it (#454)
  • A borderless hs.ui.window() placed over the menu bar is no longer pushed down below it (#454)

Full Changelog: 1.0.0-beta.2...1.0.0-beta.3

Don't miss a new Hammerspoon2 release

NewReleases is sending notifications on new releases.