pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

20220825-colemak_+2.md (2315B)


      1 It has now been [8 months](20220113-colemak_exp.html) since I started using the Colemak keyboard layout.  After [a few initial issues](20220214-colemak_lvl_up.html) things are going well.
      2 
      3 Vim navigation is no longer a problem, I am comfortable with the new positions of h, j, k, and l.  In the last month or so I have also acquired a second keyboard, so I have one permanently configured with QWERTY and can quickly switch them around.  This has made dealing with VMs much easier.
      4 
      5 ## patch all the things
      6 A new issue that arose was on updating the xorg packages.  The update replaced /usr/share/X11/xkb files, thus removing my colemak-ctrl custom config.
      7 
      8 After a bit of digging I found that I could put my colemak-ctrl setting into its own file under /usr/share/X11/xkb/symbols/, instead of the 'us' file.  I also found that I don't necessarily need the entries in /usr/share/X11/xkb/rules/base.{lst,xml}.  For reference /usr/share/X11/xkb/symbols/colemak-ctrl looks like this
      9 ```
     10 // colemak-ctrl
     11 partial alphanumeric_keys
     12 xkb_symbols "colemak-ctrl" {
     13     // include standard colemak layout
     14     include "us(colemak)"
     15 
     16     key <CAPS> { [ Control_L, Control_L, Control_L, Control_L ] };
     17 };
     18 ```
     19 
     20 Now instead of selecting the variant
     21 ```
     22 setxkbmap -option ctrl:nocaps us -variant colemak-ctrl
     23 ```
     24 
     25 I can incant
     26 ```
     27 setxkbmap -option ctrl:nocaps colemak-ctrl
     28 ```
     29 
     30 ## these boots are made for typing
     31 The keymap on boot issue was also resolved by adding the following to /etc/vconsole.conf
     32 ```
     33 KEYMAP=colemak-ctrl
     34 ```
     35 
     36 Then I included the keymap hook before the encrypt hook in /etc/mkinitcpio.conf
     37 ```
     38 HOOKS=(base udev autodetect modconf block keymap encrypt lvm2 filesystems keyboard fsck)
     39 ```
     40 
     41 I also set the keymap for X11 by adding the following to /etc/X11/xorg.conf.g/20-keyboard.conf
     42 ```
     43 Section "InputClass"
     44     Identifier "keyboard"
     45     MatchIsKeyboard "yes"
     46     Option "XkbLayout" "colemak-ctrl"
     47 EndSection
     48 ```
     49 
     50 ## neverending story
     51 I can confidently say I am now a Colemak user.  In the beginning I thought this little experiment wouldn't last and by now I would have returned to QWERTY, but quite the opposite in fact.  I feel at home using Colemak as my daily driver, and even looked into replacing the keyboard on my laptop with Colemak.
     52 
     53 Hopefully my journey will inspire somebody else to give it a go.