MacBook International Keyboard and Linux
0 Comments Published September 3rd, 2009 in Apple, Hardware, Linux Tags: Gnome, Hardware, Keyboard, Linux, MacBook, Ubuntu.I bought my Mac with the "International Keyboard". Which layout should you use on Linux?
The keyboard layout looks like this one:

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...
Search
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Aug | Nov » | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | ||||
Archives
Categories
- Android (3)
- Apple (27)
- Books (7)
- Eclipse (14)
- Errors (4)
- Firefox (7)
- Git (2)
- Hardware (17)
- Horror Code (8)
- Internet (21)
- Java (102)
- JavaScript (9)
- Life, universe and everything (46)
- Lifehacks (25)
- Linux (51)
- Opinions (26)
- OSX (6)
- Python (1)
- Software (31)
- Speeches and Conferences (8)
- Unix (4)
- Web (23)
- Windows (19)
Tag Cloud
Android apple architecture Bash configuration CSS Development Düsseldorf Eclipse Git Google Hardware hdr How-To Java JAXB job junit Karmic Linux lion MacBook music Open Source Opinion oracle OSX patterns Pitfalls Practices Resume Security Software Suspend TDD Testing tip tonemapped Tricks Ubuntu unix video Web Workaround XML
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Blog License
Blogs I like
Books on the desk
Friends' Blogs
- Antonio Terreno & Valter Bernardini
- Bruno Bossola
- Daniele Galluccio
- Domenico Ventura
- Ed Schepis
- Fabrizio Gianneschi
- Luca Grulla
- Luigi Zanderighi
- Marcello Teodori
- Mida Boghetich
- Muralidharan Chandrasekaran
- Piero Ricca
- Renzo Borgatti
- Simone Bordet
- Simone Bruno
- Uberto Barbini
- Valvolog
- Webtide blogs (Greg Wilkins & Jan Bartel)
Links




















No Responses to “MacBook International Keyboard and Linux”
Please Wait
Leave a Reply