AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Hammerspoon seal example8/17/2023 Note that we’re using the hs.geometry.rect() helper function to construct the rect table and that the y value is negative, meaning that the top of the window should start 48 pixels above the bottom of the display. This is shown in our example above, which will place the iTunes Mini Player window at the very bottom left of the screen, even if the dock is there. The sixth item is similar to the fifth, except it does take the OS menubar and dock into account. The fifth item is a rect that will be given to hs.window:setFrame() and should specify the position/size values as pixel positions on the screen, but without the OS menubar and dock taken into account. Open the Hammerspoon API docs in your browser, to explore the extensions we provide, and the functions they offerĪll good programming tutorials start with a Hello World example of some kind, so we will use Hammerspoon’s ability to bind keyboard hotkeys to demonstrate saying Hello World with a simple notification.Click on the Hammerspoon menu bar icon and choose Open Config from the menu.Run Hammerspoon.app and follow the prompts to enable Accessibility access for the app.Download the latest release of Hammerspoon and drag it to your /Applications folder.If you have never programmed in Lua before, you may want to run through Learn Lua in Y minutes before you begin. It bridges various system level APIs into a Lua scripting engine, allowing you to have powerful effects on your system by writing Lua scripts. Hammerspoon is a desktop automation tool for macOS. Getting Started with Hammerspoon What is Hammerspoon?
0 Comments
Read More
Leave a Reply. |