I took further inspiration from yqrashawn’s dot files and moved my window movement keys to my new Hammerspoon mode. They are also infrequently used, so I don’t have to worry about their impact on my RSI. I’ve found these advanced binding easy to remember because they work the same for every application. Command + Space and then 2opens 2Do, but Command + Space and then shift + 2 creates a new 2Do. I’ve started adding advanced actions to certain apps, such as 2Do, using a modifier for the activation key. Hammerspoon’s modes can trigger actions based on single keys or even modifier keys. No need to press Return and no need to ensure the right app is shown in Alfred’s search results. Command + Space followed by c opens Chrome, d opens Dash, and so on. The beauty is that my muscle memory from using Alfred for years is still valid. What if I prefixed my Alfred command with a Hammerspoon mode? Now I can invoke very common actions with two quick key presses, Command + Space and any key on the keyboard. Alfred contains every app, file, and workflow on my system. The idea is simple: when I activating Alfred, I’m invariably going to be typing at least one character and pressing return. Realizing this new mode was going to be jarring to learn, I decided to steal my Alfred shortcut ( Command + Space). Thumb-based modifiers are best for my RSI. However, I need a hotkey to invoke the global mode. Having a global mode means I can use my entire keyboard for shortcuts without conflicting with any application. I stumbled on yqrashawn’s dot files and fell in love. I had been using Hammerspoon to enable my Hyper Key addiction then I went searching for new uses of Hammerspoon that might stem my Hyper Key addiction. The abstraction is just right, a programmable Lua interface to macOS with a clean API. Recently, the most interesting developments in macOS automation have been driven by Hammerspoon. I use Command + Space to activate Alfred hundreds of times a day and it’s painless (for my RSI injury, thumb-based modifiers aren’t painful). I use Alfred in place of Spotlight due to its customizable nature. Now I had even more reason to be holding a modifier key with my left pinky. I loved the power of the Hyper Key, but it only exacerbated my RSI problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |