If you want to explore the options Hammerspoon offers, check out the Getting Started Guide and the full API documentation. You might want to do something crazy like having iTunes automatically start playing when your Mac detects you are in Paris. It bridges various system level APIs into a Lua scripting engine, allowing you to have powerful effects on. cd SPOONFOLDER python GITHUB/hammerspoon/scripts/docs/bin/builddocs.py -validate. Hammerspoon is a desktop automation tool for macOS. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting. Hammerspoon is an application you run in the background that loads custom Lua scripts to interact with your system, allowing you to script behaviors to. You might want to display an alert when your battery drops below a certain percentage. Spoons library & Hammerspoon configuration. What is Hammerspoon This is a tool for powerful automation of OS X. You might want to run a series of commands when your wifi interface connects to your home network. You might want to bind a keyboard shortcut to a series of window operations, or an Applescript. Typically you would write a configuration file in Lua that connects events to actions. You can write Lua code that interacts with OS X APIs for applications, windows, mouse pointers, filesystem objects, audio devices, batteries, screens, low-level keyboard/mouse events, clipboards, location services, wifi, and more. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine. This is very hard to describe succinctly. This is a tool for powerful automation of macOS. Spoons have been created as a way to address these issues. As a community, we have created many great configurations for Hammerspoon, but sharing code between them is hard and fragile. This implements cmd + leftClick for moving and cmd + rightClick for resizing. After spending a weekend on linux I found myself trying to alt+leftClick to drag and alt+rightClick to resize, so I went looked for a solution and here I am :) Here's what I did based on the script I found here. What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user. Spoons are intended to be pure-Lua plugins for users to use in their Hammerspoon configs. Hi guys, I just found out about hammerspoon. At its core, it is just a bridge between the operating system and a Lua scripting engine. Hammerspoon is a tool for powerful automation of OS X.
0 Comments
Leave a Reply. |