colemak keyboard layout

Post there if you plan to contribute to this SystemCd
bugmenotplease
Posts: 34
Joined: 17 May 2010, 18:50

colemak keyboard layout

Postby bugmenotplease » 16 Jul 2011, 10:39

Hi!
I've had lots of inconveniences having to manually add colemak support each time I used the CD.
Decided to add this, this is a much better layout than dvorak, but not yet present in the image.
The changes include initrd - initial language selection, and squashfs files to maintain the layout in X.
BASED ON SystemRescueCd-x86-2.2.0 (321 MiB)
Initrd:

Code: Select all

$ diff -ru orig.init cur.init
File orig.init/dev/console is a character special file while file cur.init/dev/console is a character special file
File orig.init/dev/null is a character special file while file cur.init/dev/null is a character special file
Only in cur.init/lib/keymaps: 49.map
Only in cur.init/lib/keymaps: colemak.map
diff -ru orig.init/lib/keymaps/keymapList cur.init/lib/keymaps/keymapList
--- orig.init/lib/keymaps/keymapList   2011-07-12 06:40:34.578000104 +0300
+++ cur.init/lib/keymaps/keymapList   2011-07-13 12:48:19.877008854 +0300
@@ -8,5 +8,5 @@
  22 jp      23 la       24 lt     25 mk      26 nl      27 no      28 pl
  29 pt      30 ro       31 ru     32 se      33 sg      34 sk-y    35 sk-z
  36 slovene 37 trf      39 ua     40 uk      41 us      42 wangbe  43 fr_CH
- 44 speakup 45 cs_CZ    46 de_CH  47 sg-lat1 48 fr-bepo
+ 44 speakup 45 cs_CZ    46 de_CH  47 sg-lat1 48 fr-bepo 49 colemak


Code: Select all

$ sudo diff -ru sysro/customcd/files/ sysr/customcd/files/
diff -ru sysro/customcd/files//etc/X11/xinit/xinitrc sysr/customcd/files//etc/X11/xinit/xinitrc
--- sysro/customcd/files//etc/X11/xinit/xinitrc 2011-04-06 22:00:35.000000000 +0300
+++ sysr/customcd/files//etc/X11/xinit/xinitrc  2011-07-13 12:43:53.000000000 +0300
@@ -56,6 +56,7 @@
        [ $KEYMAP = "de_CH" -o $KEYMAP = "46" ] && KEYMAP="ch"
        [ $KEYMAP = "sg-lat1" -o $KEYMAP = "47" ] && KEYMAP="ch"
        [ $KEYMAP = "fr-bepo" -o $KEYMAP = "48" ] && KEYMAP="fr bepo"
+       [ $KEYMAP = "colemak" -o $KEYMAP = "49" ] && KEYMAP="us -variant colemak"
 
        echo "setxkbmap -layout $KEYMAP" > /var/log/xorg-keymap.log
        setxkbmap -layout $KEYMAP >> /var/log/xorg-keymap.log 2>&1
diff -ru sysro/customcd/files//root/.xinitrc sysr/customcd/files//root/.xinitrc
--- sysro/customcd/files//root/.xinitrc 2011-04-06 22:00:35.000000000 +0300
+++ sysr/customcd/files//root/.xinitrc  2011-07-13 12:43:53.000000000 +0300
@@ -56,6 +56,7 @@
        [ $KEYMAP = "de_CH" -o $KEYMAP = "46" ] && KEYMAP="ch"
        [ $KEYMAP = "sg-lat1" -o $KEYMAP = "47" ] && KEYMAP="ch"
        [ $KEYMAP = "fr-bepo" -o $KEYMAP = "48" ] && KEYMAP="fr bepo"
+       [ $KEYMAP = "colemak" -o $KEYMAP = "49" ] && KEYMAP="us -variant colemak"
 
        echo "setxkbmap -layout $KEYMAP" > /var/log/xorg-keymap.log
        setxkbmap -layout $KEYMAP >> /var/log/xorg-keymap.log 2>&1
Only in sysr/customcd/files//usr/share/keymaps/i386/qwerty: colemak.map

3 files attached: colemak.map (files: /usr/share/keymaps/i386/qwerty), 49.map and colemak.map (initrd: /lib/keymaps)

Thanks!
Hope you can add it to next release!

gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

Re: colemak keyboard layout

Postby gernot » 16 Jul 2011, 17:35

/etc/X11/xinit/xinitrc and /root/.xinitrc are the same file.
/root/.xinitrc is only a softlink

Gernot

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: colemak keyboard layout

Postby admin » 17 Jul 2011, 14:17

Thanks, this has been added to sysresccd-2.3.0-beta001


Return to “Contributions”

Who is online

Users browsing this forum: No registered users and 1 guest