![]() For our purposes here, we're exploring Hammerspoon primarily in the context of using it to react to keyboard shortcuts and trigger something in response. 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 react to system events. I dug deeper and deeper into the Hammerspoon ecosystem, looked at more custom Karabiner and Hammerspoon settings, and heard some feedback from my first post. In order to to try out global vi mode w/Karabiner, I had to sacrifice hyper+k from the Spectacle cheatsheet and switch that to be right-option+k. Additionally, tab can be rigged up to act as a modifier in conjunction with the hyper key to enable quick access to home/end/pgdn/pgup – which is especially awesome when you are on a laptop keyboard. With this Karabiner recipe enabled, you press a hyper key and then h/j/k/l to move the cursor left/down/up/right. Then, mid-way through patting myself on the back, I discovered global vi mode with a hyper key and Karabiner. I like keyboard shortcuts bound to keys based on a pnemonic, so binding my global spectacle keyboard shortcut cheatsheet to hyper+k seemed like a good, quick win that would help me memorize those Spectacle shortcuts. Having an extra meta key with a whole slew of nonconflicting keybinding slots seemed awesome. ![]() ![]() I had combed through many blogs and git repositories. After my initial experiments using Karabiner to bind a keyboard shortcut to an image-based cheatsheet and leverage a hyper key to avoid application level key binding conflicts and finger twister, I was super excited. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |