Gentoo Archives: gentoo-user

From: Thanasis <thanasis@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] remap console keys
Date: Wed, 13 Jan 2010 19:49:47
Message-Id: 4B4E23A0.6080504@asyr.hopto.org
In Reply to: Re: [gentoo-user] Logitech diNovo Keyboard Mac Edition by Thanasis
1 on 01/13/2010 08:59 PM Thanasis wrote the following:
2 > on 01/13/2010 08:38 PM Thanasis wrote the following:
3 >
4 >> swapping keys
5 >>
6 > I think I 'm in the right direction looking at KEYMAPS(5)
7 >
8 Here is what I did:
9 1) chose a keymap file (/usr/share/keymaps/i386/qwerty/gr.map.gz in my case)
10 2) copied and unzipped it at some location and edited it like so:
11
12 # diff gr.map-modified gr.map
13 102c102
14 < keycode 56 = Control
15 ---
16 > keycode 29 = Control
17 142c142
18 < keycode 29 = Alt
19 ---
20 > keycode 56 = Alt
21
22 3) Then restarted /etc/init.d/keymaps
23 (/etc/init.d/keymaps restart)
24 and it worked, ie left ALT and CTRL where swapped (in console F1 to F6)
25
26 4) To make it permanent we can then edit /etc/conf.d/keymaps
27 and change the keymap="...." entry to the pathname of our new keymap file.
28
29 Any comments, before I consider the case solved, are welcome.
30 :-)

Replies

Subject Author
Re: [gentoo-user] remap console keys Thanasis <thanasis@××××××××××.org>