Mapping ‘Insert’ on an Apple keyboard

The first thing I noticed on my new Apple keyboard was the Insert-key being replaced by a FN-key. Quite hard to get used to when shift+instert is hard coded into you mind ;)

image source: netninja.com

Unfortunately, running ‘xev’ shows that the FN-key doesn’t send any hard-link keycode what so ever (like keycode 110 for Insert).
Quick and dirty, I worked around by mapping the F13-key (above the FN-key) to Insert. This can be done by creating a ~/.xmodmap file with the line “keycode 182 = Insert” and starting “xmodmap ~/.xmodmap” from GNOME Sessions, like this:

This works for me. If anyone has a better solution, like embedding in x.org or making it work at system startup instead of enabling this on the start of a GNOME session, let me know.

It’s a nice keyboard. You should get one ;)

About martijn

http://xbsd.nl/about/
This entry was posted in xbsd and tagged , , . Bookmark the permalink.

5 Responses to Mapping ‘Insert’ on an Apple keyboard

  1. thundt says:

    Under MacOS X11, you have to use keycode 113. I’m posting this here in case someone’s trying to do it Mac-native instead of Linux.

  2. ./martijn says:

    Good one … thnks

  3. Anonymous says:

    Excellent , just what I was looking for.. thanks.

    For info under KDE you just have to create a shortcut in /home/YourUser/.kde/Autostart/

  4. Anonymous says:

    according to

    http://support.apple.com/kb/HT1216

    you can use "fn + enter." that doesn't work for me, but "fn + return" does.

  5. Chucknorris McNewfag says:

    The above shortcut doesn’t work for me. I have to use ctrl + shift + fn + return. YET I STILL HAVE 19 DAMN FUNCTION KEYS WHAT THE HELL ARE THEY FOR.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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