I have healthier wrists and am a more efficient typer because I designed my own keyboard layout.
This guide will take you from having never heard about what a keyboard layout is all the way to using your custom layout on a mechanical keyboard via QMK
. Even though the ergonomic keyboard community is very kind and helpful, most of the information is buried across Reddit, old blogs, and even older internet forums. I will walk you through all the necessary information a complete beginner needs to start building a custom layout.
Let's begin our journey down the massive rabbit hole that is keyboard layouts.
The Basics
You just came off your high discovering ergonomic keyboards and have now realized that you need to put all the keys you just lost somewhere.
Let's take this opportunity to revamp your typing habits and shortcuts to make your typing more efficient. In the long run, good typing posture and shorter finger movements can even help prevent repetitive strain injury (RSI).
Building your custom layout will consist of 3 steps:
- Chose a keyboard layout for your base layer, for example
Qwerty
,Dvorak
, orColemak-DH
. - Customize the layout to match your specific keyboard. This is the fun part since you get to infuse your keyboard with superpowers.
- Install your custom layout by flashing firmware to your keyboard, for example by using QMK Firmware.
Don't worry if these steps seem daunting. Nothing beats experimenting with all the different features and seeing what you like. You will become a better typer along the way.
Picking a Base Layout
If you are like me, you typed on a Qwerty
(sidenote: The qwerty
layout is what you see on any regular keyboard. It's named after the first letters in the upper row. ) your entire life; turns out Qwerty
is garbage in terms of ergonomics.
Certain letters and bigrams appear much more often in text or code than others. Unfortunately, Qwerty
was not designed to make the most frequent letters and bigrams the most comfortable to hit. Naturally, many keyboard layouts have since been designed that optimize specifically for typing comfort.
The three most popular layouts are Qwerty
, Dvorak
, and Colemak(-DH)
. The images below are heatmaps for these three layouts that were generated using 10000 sentences from Wikipedia. The first time I saw these heatmaps, I was shocked. I recommend you watch this video to learn a little bit about the history of these (and other) layouts.
Unfortunately, every English keyboard runs on Qwerty
, so switching layouts does have drawbacks. Read through Pascal Getreuer's excellent article on alternate keyboard layoutsand decide whether you want to learn one. For lazy readers here is my quick summary. The primary motivation for switching layouts is improved typing comfort. Improving speed should not weigh into your decision. Additionally, note that learning a new layout is hard and you will have to use qwerty
when using someone else's computer. On the other hand, alternate keyboard layouts like Colemak-DH
and Sturdy
are significantly more ergonomic than qwerty
. If you want to switch layouts, but can't decide on a specific one, go with Colemak-DH
. Colemak-DH has been battle-tested by the community.
Your fingers on QWERTY move 2.2x more than on Colemak. QWERTY has 16x more same hand row jumping than Colemak. There are 35x more words you can type using only the home row on Colemak. -- colemak.com
Personally, I am currently exploring switching to Colemak-DH. I also designed a custom layout that let's me use hjkl
in vim
to move around. If you'd like to switch, I recommend using monkeytype.com and keybr.com to (sidenote: It is also recommended to change the corpus on monkeytype
from 🌐 english
to 🌐 english 5k
right above the text, so that you come across more words while practicing. ) . I recommend at least trying a different layout, although you won't get any good without a serious commitment. And here is more text. akcsjaksdcjsc.
Next steps
Now it is time to customize your layout for your specific keyboard. Aditionally, you need to add symbols, numbers, and all the other things that don't fit on your keybaord. Along the way you will be able to create keys that select entire words or type ../
with one press. I show you how to do it in part 2 of this guide.