1 |
on 01/13/2010 09:48 PM Thanasis wrote the following: |
2 |
> on 01/13/2010 08:59 PM Thanasis wrote the following: |
3 |
> |
4 |
>> on 01/13/2010 08:38 PM Thanasis wrote the following: |
5 |
>> |
6 |
>> |
7 |
>>> swapping keys |
8 |
>>> |
9 |
>>> |
10 |
>> I think I 'm in the right direction looking at KEYMAPS(5) |
11 |
>> |
12 |
>> |
13 |
> Here is what I did: |
14 |
> 1) chose a keymap file (/usr/share/keymaps/i386/qwerty/gr.map.gz in my case) |
15 |
> 2) copied and unzipped it at some location and edited it like so: |
16 |
> |
17 |
> # diff gr.map-modified gr.map |
18 |
> 102c102 |
19 |
> < keycode 56 = Control |
20 |
> --- |
21 |
> |
22 |
>> keycode 29 = Control |
23 |
>> |
24 |
> 142c142 |
25 |
> < keycode 29 = Alt |
26 |
> --- |
27 |
> |
28 |
>> keycode 56 = Alt |
29 |
>> |
30 |
> 3) Then restarted /etc/init.d/keymaps |
31 |
> (/etc/init.d/keymaps restart) |
32 |
> and it worked, ie left ALT and CTRL where swapped (in console F1 to F6) |
33 |
> |
34 |
> 4) To make it permanent we can then edit /etc/conf.d/keymaps |
35 |
> and change the keymap="...." entry to the pathname of our new keymap file. |
36 |
> |
37 |
> Any comments, before I consider the case solved, are welcome. |
38 |
> :-) |
39 |
> |
40 |
> |
41 |
> |
42 |
Correction: step 3 should be: |
43 |
3) As root, I run: |
44 |
# loadkeys <new-keymap-file> |
45 |
and it worked, ie left ALT and CTRL where swapped (in console F1 to F6) |