|
| 1 | +--- |
| 2 | +title: caps lock is escape is ctrl |
| 3 | +categories: [macos] |
| 4 | +--- |
| 5 | + |
| 6 | +Still configuring my "new" Macbook... |
| 7 | + |
| 8 | +I'm trying to combine using a 60% keyboard, which works pretty well for its price along with my shortcut maximalism. |
| 9 | + |
| 10 | +This leads to some collisions that I never experimented, but I'm kind of solving them with 2 things: |
| 11 | + |
| 12 | +# Karabiner |
| 13 | + |
| 14 | +Allows you to remap keys PER DEVICE. That's super cool, as different |
| 15 | +keyboards have different layouts, so some remaps only make sense in a single keyboard. |
| 16 | + |
| 17 | +I also imported a script from [this blog](https://medium.com/@pechyonkin/how-to-map-capslock-to-control-and-escape-on-mac-60523a64022b) that maps caps lock to escape when pressed alone, and to ctrl when pressed in "chord". |
| 18 | + |
| 19 | +That's great, because the major drawback of the 60% kbd IMO is the key |
| 20 | +to the left of "1", which is `esc, backtick, and tilde`. The way to |
| 21 | +make one or the other involve a tiny `fn` key in the keyboard and |
| 22 | +maybe `shift` also. |
| 23 | + |
| 24 | +All in all, between the usual `imap jk <esc>` and this karabiner config, I'm quite satisfied with the keyboard usage. |
| 25 | + |
| 26 | +# Rectangle |
| 27 | + |
| 28 | +To manage windows and sizes and screens, `rectangle` is a nice free app that provides a few useful shortcuts. |
| 29 | + |
| 30 | +# Hammerspoon & Ratspoon |
| 31 | + |
| 32 | +The ultimate configuration layer is Hammerspoon, which is some sort of |
| 33 | +AutoIt for MacOS, and it's configured in Lua. |
| 34 | + |
| 35 | +The same way I created [ratemu](https://github.com/kidd/ratemu) about |
| 36 | +15 years ago, now it's time to create ratemu.lua. |
| 37 | + |
| 38 | +I'm taking https://github.com/jorenvo/ratspoon as a base, and my plan |
| 39 | +is to only add things on a need basis. |
0 commit comments