How to remap your keyboard

Wouter Eerdekens retuow at gmail.com
Mon Jul 17 09:59:49 UTC 2006


2006/7/16, Wouter Eerdekens <retuow at gmail.com>:
> Hi.
>
> I am using a Mac Mini with a  standard Apple keyboard and I'm running
> Ubuntu 6.06.
>
> I want to remap my keyboard to be more "mac like" :
>
> - swap the Control and Command key (Super key)
> - move the tilde/backquote key to its correct location (left of the 'z' key)
>
> First I used 'xev' to determine the keycode of the Command key (115)
>
> I tried adding the following to ~/.xmodmap:
>
> keycode 115 = Control_L
>
> But to no avail... xev shows the following afterwards:

Never mind, after reading the xmodmap manpage a couple of times, I've solved
all my keyboard problems. The current contents of my .xmodmap file:


! Make the left Command key an additional Control key
remove mod4 = Super_L
add control = Super_L

! Use the right Command key as Mode_switch
remove mod5 = Mode_switch
keysym Multi_key = Mode_switch
add mod3 = Mode_switch

! Do not use the right Control key
remove control = Control_R

! Make the key left of the 'z' the grave/asciitilde key
keycode 94 = grave asciitilde

! Make the key left of the '1' the section/plusminus key
keycode 49 = section plusminus

! Add the euro sign to the '2' key
keycode 11 = 2 at EuroSign


Cheers,
Wouter

-- 
The seven is the number of the young light
It forms when darkness is increased by one

Shine on, Syd!




More information about the ubuntu-users mailing list