A saner keyboard
I think keyboards are fascinating devices, from design, technological, and linguistic perspectives. After all, a keyboard encompasses the tasks of (i) communicating in written language, (ii) operating and controlling the machine, and (iii) programming in computer language.
Shortly after starting to use GNU Emacs, I found myself thinking extensively about the position of the keys on my keyboard. After researching a bit, the first information I found was about the different layouts, particularly qwerty
and dvorak
.
At first, dvorak
's proposal to distribute the keys according to letter frequency seemed sound to me. However, in a context of writing in different languages, the frequency and positions would have to change for each language. For that reason alone, I ended up deciding to stick with qwerty
for now.
Although the linguistic layout had an impact, I was more concerned with the position of the operational keys. For example, to me, it did not make sense for CAPS to be an easier-key-to-press than ESC. While reading the book Mastering Emacs, I ended up discovering that the keyboards, at the time of GNU Emacs creation, were completely different in terms of modifiers.
A much older joke is that Emacs stands for “Escape Meta Alt Control Shift.” (…) Back then, most Emacs keys were bound to a larger range of physical keyboard modifiers but when the keyboard maker (and the business that made the machines the keyboards were plugged into) went bust, Emacs had to change with the times. Instead of undoing the cornerstone of Emacs, the developers shuffled the keys around and made them work on normal, boring PC keyboards.
— Mickey Petersen, in Mastering Emacs (2015)
When I saw the photo of a Space Cadet used on the first Lisp machines, many traditional GNU bindings started to make even more sense, beyond their mnemonic aspect. For example, the fact that the current Alt key is called M- (Meta).
Until this moment I was using the formidable KMonad to swap the position of CAPS and ESC. I also spent some time customizing different layers to have a little more comfort even on a traditional keyboard design. One of KMonad's most powerful features is the ability to assign different commands to the same key based on the press type. For instance, I programmed my SPC key to act like s- (Super) when pressed for more than 500ms without affecting its default functionality.
#| --------------------------------------------------------------------
KMonad: BR abnt-2 100% template
-------------------------------------------------------------------- |#
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ssrq slck pause
grv 1 2 3 4 5 6 7 8 9 0 - = bspc ins home pgup nlck kp/ kp* kp-
tab q w e r t y u i o p [ [ ret del end pgdn kp7 kp8 kp9 kp+
caps a s d f g h j k l ; ' ] kp4 kp5 kp6
lsft 102d z x c v b n m , . ; / rsft up kp1 kp2 kp3 kprt
lctl lmet lalt spc ralt cmp rctl left down rght kp0 kp. )
(deflayer base
caps f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ssrq slck pause
grv 1 2 3 4 5 6 7 8 9 0 - = bspc ins home pgup nlck kp/ kp* kp-
tab q w e r t y u i o p [ [ ret del end pgdn kp7 kp8 kp9 kp+
@ces a s d f g h j k l ; ' ] kp4 kp5 kp6
lsft 102d z x c v b n m , . ; / rsft up kp1 kp2 kp3 kprt
lctl lmet lalt @dwm ralt @swt rctl left down rght kp0 kp. )
(deflayer xfk
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ssrq slck pause
grv 1 2 3 4 del 6 7 8 9 0 - = bspc ins home pgup nlck kp/ kp* kp-
tab q w @db @df t y @bw up @fw p [ [ ret del end pgdn kp7 kp8 kp9 kp+
caps a ret bspc f g home left down rght end ' ] kp4 kp5 kp6
lsft 102d z x c v b n m , . ; / rsft up kp1 kp2 kp3 kprt
lctl lmet lalt spc ralt @swt rctl left down rght kp0 kp. )
(deflayer switch
_ @s1 @s2 _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ @swt _ _ _ _ _ _ )
(defalias
dwm (tap-hold 500 spc lmet)
swt (layer-toggle switch)
ces (tap-hold 500 esc lctl)
s1 (layer-switch base)
s2 (layer-switch xfk)
bw (around ctl left)
fw (around ctl right)
db (around ctl bspc)
df (around ctl del))
However, even after customizing my entire keyboard using KMonad, I was still bothered by the physical position of the keys. Furthermore, the idea of running a separate program to modify them did not appeal to me that much either. It was then that I discovered the X-Bows keyboard.
The X-Bows has alternative keys for the thumb position, which was previously used primarily to press SPC. With these new keys, I can control the C-, M- and S- modifiers only with that finger. I also have DEL and RET within easy reach. In short, the keyboard relieves combinations from the weakest finger, the little finger, to stronger fingers near the keyboard's center. That, along with the spacing and angulation, represents huge gains in comfort and performance.
Aside from the ergonomic benefits, the ability to use thumb modifiers is also a boon when using GNU Emacs. Additionally, I found adapting to the keyboard to be quicker than expected. I will write more about that in an upcoming post on touch typing.
In advance, I have been using the X-Bows for just over 3 months now. The only disadvantage I have noticed so far is that I have become so used to its design that it feels odd typing on other keyboards, especially on laptops. I have become somewhat dependent on it, which is not necessarily a bad thing. Ideally, it would be great to have laptops with the thumb cluster design one day. Or rather, if this design became a widespread standard.
Until then, the most viable option has been carrying the X-Bows with me whenever necessary.
Retro-Computing Society of Rhode Island, via Wikimedia Commons.
∗ ∗ ∗