![]() ![]() Some of the lower-level extensions are written in Objective-C, but all of them expose a Lua API, and it is trivial to write your own extensions or modules to extend its functionality.įrom the Hammerspoon configuration you can also execute external commands, run AppleScript or JavaScript code using the OSA scripting framework, establish network connections and even run network servers you can capture and generate keyboard events, detect network changes, USB or audio devices being plugged in or out, changes in screen or keyboard language configuration you can draw directly on the screen to display whatever you want and many other things. ![]() It includes extensions for querying and controlling many aspects of the system. Hammerspoon acts as a thin layer between the operating system and a Lua-based configuration language. Hammerspoon fswatch mac#If you are a programmer, it can make using your Mac vastly more fun and productive. Hammerspoon is the most powerful Mac automation utility I have ever used. Automatically pause audio playback when headphones are unplugged.Keep a configurable and persistent clipboard history.Keyboard-triggered translation of selected text between arbitrary human languages.Set up actions to happen automatically when switching between WiFi networks–for example for reconfiguring proxies in some applications.Manipulate windows using keyboard shortcuts to resize, move and arrange them.Replace Spotlight, Lacona and other launchers with a fully configurable, extensible launcher, which allows not only to open applications, files and bookmarks, but to trigger arbitrary Lua functions.When combined with Site-specific Browsers (I use Epichrome), this allows for highly flexible management of bookmarks, plugins and search configurations. Open URLs in different browsers based on regular expression patterns.For example: automated tagging and filing in Evernote, mail/note archival in Mail, Outlook and Evernote, filing items from multiple applications to OmniFocus using consistent keyboard shortcuts, or muting/unmuting a conversation in Skype. Add missing or more convenient keyboard shortcuts to applications, even for complex multi-step actions.For example, the following are doable using Hammerspoon (these are all things I do with it on my machine - each paragraph links to the corresponding sections in my config file): ![]() Using Hammerspoon, you can replace many stand-alone Mac utilities for controlling or customizing specific aspects of your Mac (the kind that tends to overcrowd the menubar). Hammerspoon configuration is written in Lua, a popular embedded programming language. It also allows interfacing with AppleScript, Unix commands and scripts, and other applications. Hammerspoon enables interaction with the system at multiple layers–from low-level file system or network access, mouse or keyboard event capture and generation, all the way to manipulating applications or windows, processing URLs and drawing on the screen. Hammerspoon is a Mac application that allows you to achieve an unprecedented level of control over your Mac. In the word of Hammerspoon’s motto: Making the runtime, funtime. Hammerspoon fswatch series#This is the first installment of a series of posts about Hammerspoon, a staggeringly powerful automation utility which gives you an amazing degree of control over your Mac, allowing you to automate and control almost anything. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |