This seemed like a powerful idea for reducing key strokes, and after a bit more searching I discovered Karabiner Elements for mac. Somewhere along my searching, I came across articles about people who “re-mapped” their keyboards so that some key presses would trigger other events. Needless to say, I immediately started searching for a mechanical keyboard to replace my crummy old Apple keyboard. But it wasn’t just aesthetically better - I was able to type at a faster speed and with fewer errors when using a mechanical keyboard. There is something about the combination of aural and tactile feedback you get when typing on a keyboard with mechanical switches that makes the typing experience just… better. ![]() Curiosity got the best of me, and after trying out his keyboard for a few minutes I immediately understood why people use mechanical keyboards. One of my first roommates in graduate school was a remarkably fast typist and used this loud, clacky mechanical keyboard (I had to wear earplugs or listen to music to get anything done when he was typing). Once you have the code in your init.Figure 1: Me back in 2011 reading about mechanical keyboards. fire alt + space if no other keys are pressed.į18 = hs.hotkey.bind(, 'F18', pressedF18, releasedF18) Leave Hyper Mode when F18 (Caps Lock) is released, The reason for the additional check on other keys, is to allow for using Caps Lock as an additional modifier key, allowing for more bindings using it, if needed: - Enter Hyper Mode when F18 (Caps Lock) is pressed To avoid confusion, I won't include all of my a here, but this is basically what you would need to include, in order to allow F18 to fire alt + space. hammerspoon directory in your home directory, to determine the rules and shortcurts you've set up. Once it's installed, Hammerspoon looks for a in the. I won't go into the details on installing Hammerspoon here, they have a pretty decent introduction on the site. In this case, we want to remap F18 into firing a combination of the Option key (alt) and Space, effectively doing what Karabiner-Elements currently cannot. However, it also allows you to do systemwide shortcuts, which is what we'll use here. This means you can monitor and automate behavior, based on things like WiFi available, screens connected etc. Hammerspoon is basically a software-bridge between the lower levels of macOS (using the Accessibility API in macOS) and a Lua scripting engine. I recently discovered Hammerspoon, as it's popped up a few places as being the next big thing for automation geeks on macOS. We still need to trigger something on pressing the F18 button. This gets us part of the way, but not quite. Karabiner-Elements is a new set of sub commands from the original Karabiner, for now basically a scaffold for the next version of Karabiner.Įven though it doesn't (yet!) support firing multiple keystrokes on a single key, Karabiner-Elements is not all bad, as it allows for rebinding Caps Lock to some F-keys not usually used on the Mac keyboard (Specifically F13-20), which will allow for remapping Caps Lock to fire something which you wouldn't normally use.Īfter installing Karabiner-Elements, open it up and setup the following: My muscle memory caused some issues on this after upgrading to macOS Sierra, as I've grown kinda used to using Caps Lock for OmniFocus, suddenly requiring me to skip that habit. ![]() However, Karabiner no longer works in macOS Sierra and the alternative Karabiner-Elements has yet to support multiple keystrokes for a single key. ![]() As you may recall, I used Karabiner and Seil to remap my Caps Lock previously, allowing me to use it for Alfred or OmniFocus.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |