One of the examples it comes with is what we're going to use: Change the meaning of the caps lock key. Karabiner-elements can create complex, powerful modifications. This rarely used four-chord combination will help to prevent stepping on other application's hotkeys, but it's by no means required. The directives IfWinActive/Exist can be used to make selected remappings active only in the windows you specify. See the Key List for a complete list of key and mouse button names. shyper is defined as the same combination, in addition with the shift key. It defines hyper as the combination of command, control and option being pressed at the same time, which has been remapped to the caps lock key. The left column denotes the key youll press (for example, the Caps Lock key) and the right column denotes the. The following Hammerspoon configuration should be saved to /.hammerspoon/a. (optionally) Karabiner-elements, for creating custom keyboard configurations - in this example, we'll remap the rarely-used caps lock key to function as a "hyper" key, equivalent to pressing cmd+option+shift+ctrl. You can try out any of these examples by copying them into a new text file such as 'Remap.ahk', then launching the file. To remap a key, click the Add button and choose your keys from the two columns.
![hammerspoon remap a key hammerspoon remap a key](https://i.ytimg.com/vi/u46ttzUWz7c/hqdefault.jpg)
Hammerspoon, the actual automation engine.Fortunately there is a solution in the form of desktop automation! For macos, it comes in two (free) parts you need to install:
HAMMERSPOON REMAP A KEY INSTALL
First download Karabiner Elements and Hammerspoon from their pages or by using Homebrew: brew cask install hammerspoon brew cask install karabiner-elements 1.
HAMMERSPOON REMAP A KEY SOFTWARE
Unfortunately, it is not always possible to keep the meeting software focused (for example when screen sharing a presentation, or going through bugs in the issue tracker, keeping meeting notes, etc), so the mute hotkey is just out of reach. In our approach we will also be using Karabiner Elements for the initial key remapping, but we will be extending this functionality using Hammerspoon. From the website: You can write Lua code that interacts with OS X. As a common courtesy (or to preserve privacy when required) it's recommended practice to mute yourself when you're not speaking, or at least when loud/persistent noises are to be expected. Although it’s possible to remap keys, Hammerspoon presents itself as a powerful automation tool: Hammerspoon is just a bridge between the operating system and a Lua scripting engine With Hammerspoon you have a powerfull tool for automation of your system. For better or worse it's now often part of a developer's daily routine to have one or several calls. 2020 was the year video conferencing became ubiquitous.