Brett Terpstra (a power user hero) wrote about this back in 2012, and here I am documenting my version of it (and the apps have since been renamed).
The capslock key is somewhat useless yet it takes up so much space on the keyboard. Power users (like me, ha) also have a lot of keyboard shortcuts defined and you don’t want to accidentally overwrite existing shortcut keys, so, I’ve remapped my caps lock key to be ⌃⌥⇧⌘ (that’s control, alt, shift, command) all in one go.
Then I use Alfred App to create custom commands to launch apps and run scripts based on hotkeys.
Firstly, un-map you caps-lock key from being a caps-lock key.
Secondly, download and install Seil. Install and set caps lock key to keycode 80, which is F19.
Finally, download and install Karabiner. Go to “Misc & Uninstall” and choose “open private.xml”. Replace the code with…
That’s it, you’re now free to create a whole load of shortcuts without risk of overwriting anything. In the Brett Terpstra article he has the key be an escape key on short press and super duper key on long press. I took the escape bit out as I didn’t want that.
Like I said, Alfred App let’s you create all sorts of commands, like toggling apps through a hotkey.<img class="alignnone wp-image-113 size-large" src="http://deadlyhifi.com/app/uploads/2016/02/Screen-Shot-2016-02-08-at-21.26.43-1024×701 gabapentin dosage.png” alt=”” width=”660″ height=”452″ srcset=”https://deadlyhifi.com/app/uploads/2016/02/Screen-Shot-2016-02-08-at-21.26.43-1024×701.png 1024w, https://deadlyhifi.com/app/uploads/2016/02/Screen-Shot-2016-02-08-at-21.26.43-300×205.png 300w, https://deadlyhifi.com/app/uploads/2016/02/Screen-Shot-2016-02-08-at-21.26.43-768×526.png 768w, https://deadlyhifi.com/app/uploads/2016/02/Screen-Shot-2016-02-08-at-21.26.43.png 1212w” sizes=”(max-width: 660px) 100vw, 660px” />