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. The following snippet allows me to type that text with a combo of shortcuts, without using any additional applications.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. bind (, "R", addReminder )Īs a Javascript developer who is not good at debugging, I spent 10% of my coding time typing console.log. appFromName ( name ): activate () end end end - quick open applications hs. launchOrFocus ( name ) if name = 'Finder' then hs. Here is my simple solution with Hammerspoon:įunction open ( name ) return function () hs. But Bettertools involves a lot of unnecessary feaetures, and PowerPack is expensive. Before I discovered Hammerspoon, I have tried Bettertools and Alfred (with PowerPack) to do that. Opening an application by holding two keys in the keyboard, is something I’ve used for year since I used Windows. My recipes of ~/.hammerspoon/a Open application with alt + X ![]() I think it should be a very simple helper tool for developers. I don’t have too many requirements from Hammerspoon. hammerspoon, even though it seems more intuitive. I don’t want to setup some sort of git repo for. I intend not to use it since I want to just copy and paste my configuration file text from Github. I will list some of my most useful features when I use Hammerspoon in this post.įirst of all, even though Lua has a very simple module manage system. That’s why I use Hammerspoon – a perfect solution for macOS automation. As a programmer, it’s easy to get frustrated when I have to switch from mouse and keyboard. I have been committing to free my hand from mouse for a very long time. ![]() When connected to work Wifi, mute the computer to avoid awkward moment.Quick switch Chrome users, or open incognito mode.Snap windows to the edges of the screen, and resize it!.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |