Replacing the keymap in Minix 3

Probably, you will ever need to replace the keymap in Minix (nor other operative system). However I needed. Today I made a strange discovery: there was no mapping for the tilde ~ character in the Minix 3’s Spanish keymap.

So I update my copy of /usr/src/drivers/tty/keymaps/spanish.src and found it was true: there was not a mapping. So I decided to assign it to the [Alt Gr + 4] combination like other OSes do.

Apply this patch:

Index: spanish.src
===================================================================
— spanish.src    (revision 4206)
+++ spanish.src    (working copy)
@@ -10,7 +10,7 @@
/* 02 – ’1′    */    ’1′,    ‘!’,    A(’1′),    ‘|’,    ‘!’,    C(‘A’),
/* 03 – ’2′    */    ’2′,    ‘”‘,    A(’2′),    ‘@’,    ‘”‘,    C(‘@’),
/* 04 – ’3′    */    ’3′,    0372,    A(’3′),    ‘#’,    0372,    C(‘C’),
-/* 05 – ’4′    */    ’4′,    ‘$’,    A(’4′),    ’4′,    ‘$’,    C(‘D’),
+/* 05 – ’4′    */    ’4′,    ‘$’,    A(’4′),    ‘~’,    ‘$’,    C(‘D’),
/* 06 – ’5′    */    ’5′,    ‘%’,    A(’5′),    ’5′,    ‘%’,    C(‘E’),
/* 07 – ’6′    */    ’6′,    ‘&’,    A(’6′),    0252,    ‘&’,    C(‘F’),
/* 08 – ’7′    */    ’7′,    ‘/’,    A(’7′),    ‘{‘,    ‘/’,    C(‘G’),

Then execute (as root) in the CLI:

# make && make install
# cp /usr/lib/keymaps/spanish.map /etc/keymap
# reboot

Note: /etc/keymap is the file which contains your current keymap. Replace it with your new binary keymap.

Tada! Log in again a check it out your new key mapping! ~ ~ ~ ~ ~ ~ :D

Advertisement

About me


My name is Rafa Vargas. I'm an undergraduate student of Computer Science at University of Seville, Spain. I am mainly interested in computer security, usability and the business of software.

Click here to read the full story.

Twitter subscription

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 6 other followers

Archives


Follow

Get every new post delivered to your Inbox.