Hacker News new | ask | show | jobs
by saidajigumi 1523 days ago
As a software rather than keyboard hack, I've been using and loving the following setup on macOS: * Remap Caps Lock to Ctrl * Then use Hammerspoon[1] to map Ctrl(hold) / Esc (momentary press)

This essentially puts both Ctrl and Esc in a comfortable position on the home row, probably my favorite "ergo hack" ever.

[1] http://www.hammerspoon.org/

5 comments

You can do the same with 1 config item using Karabiner-Elements also. Same exact thing just offering another option!
I do the same in the Ergodox QMK firmware, no app needed on the device. Just mentioning it since OP has the same keyboard!
> map Ctrl(hold) / Esc (momentary press)

Do you have an example of this configuration somewhere you could share? Or are you using something existing, like https://github.com/jasonrudolph/ControlEscape.spoon ?

am not OP, but I accomplish the same thing like this: https://github.com/kclejeune/system/blob/master/modules/home...

I previously used Karabiner for this and as far as I can tell, the behavior is the same.

I do the same with Karabiner, I didn’t realize Hammerspoon could handle that… might be able to drop one app from my “must have” list…
I always disable capslock - it's about the most useless key on the keyboard 99.9992% of the time
I have it set as a "super" modifier, i.e. cmd + ctrl + option + shift, perfect as then you can use it as a modifier for shortcuts as no programs use that a default keyboard shortcut