It simply squeezes in åäö
comfortably on the home row through AltGr
.
It tries in no way to edit anything else on colemak, so it's still only
optimized for English and not Swedish.
Additionally I've squeezed a lot of other fancy stuff through AltGr
,
which are independent of the language.
sudo cp /usr/share/X11/xkb/symbols/us{,-backup}
sudo vim /usr/share/X11/xkb/symbols/us % or whatever editor you use
Now, simply REPLACE the english colemak with the code. For the changet to take affect, just log in and out. If you want to avoid the replace, you can do it the proper way by following these instructions.
BUT DON'T!! I've done that and it's just a waste of time. If you really don't want to replace en colemak, replace something else!
AltGr+a --> ä
AltGr+l --> å
AltGr+ö --> ö
where a, k, ö are the physical positions for qwerty.
Note it's just a movedown of the colemak keys except for å
since it's
a vowel and should not be placed at the same key as the non-vowel r
!
(Think of words like råtta and år)
Also I've put arrow keys on home row and put esc there as well for vim users. Furthermore I've put home/end and pgup/pgdn on the buttons where the long fingers can reach comfortably while your thumb is holding down AltGr. I srongly recommend these tricks to everyone, even those not wanting a Swedish layout or are using QWERTY.
I would love to discuss this, feel free to comment on this gist!
👍