I bought my Mac with the "International Keyboard". Which layout should you use on Linux?

The keyboard layout looks like this one:

Macintosh International Keyboard

As far as I know the "USA Macintosh" is the one that fits better, but still you have the §± and `~ keys inverted. To fix this I've added to Gnome Session Startup this script:

#!/bin/bash

# fix keyboard layout switching §± and `~
xmodmap -e "keycode 49 = section plusminus section plusminus section plusminus"
xmodmap -e "keycode 94 = grave asciitilde grave asciitilde dead_grave dead_horn"

It doesn't replace that on the tty consoles, but works perfect in Xorg.

UPDATE: ~/.xmodmaprc

Another alternative is to create a file in your home folder: ~/.xmodmaprc with following content:

$ cat .xmodmaprc 
keycode 94 = grave asciitilde grave asciitilde dead_grave dead_horn
keycode 49 = section plusminus section plusminus section plusminus

I don't like very much having ~/.files so I put those files under ~/etc folder and use symbolic links:

$ ls -lad .* | grep "\\->"
lrwxrwxrwx  1 luigi luigi     18 2009-07-29 23:45 .manpath -> etc/manpath.config
lrwxrwxrwx  1 luigi luigi     13 2009-11-20 16:52 .xmodmaprc -> etc/xmodmaprc

I think it's an easier way to manage local configurations, even though I don't move every ~/.file to a link under ~/etc I still prefere to keep a more visible and explicit and "visible" configuration under a local etc folder. Under my home folder I also have folders bin,opt,src,tmp,var,etc...


No Responses to “MacBook International Keyboard and Linux”  

  1. No Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Current day month ye@r *


Calendar

September 2009
M T W T F S S
« Aug   Nov »
 123456
78910111213
14151617181920
21222324252627
282930  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening