/usr/share/X11/xkb/symbols/macintosh_vndr
Edit: /usr/share/X11/xkb/symbols/macintosh_vndr/apple (5105B)
//
// Keyboard modification for Apple keyboards
//
partial default modifier_keys
xkb_symbols "extended" {
key
{ [ KP_Equal ] };
// The key in the PC's Insert position is sometimes engraved Help (at least
// in Switzerland and Great Britain), with Insert sometimes above. But in the
// US and Canada, it remains Insert. So this should probably be an XkbOption,
// but I have to do more research.
// Perhaps Help should be the primary symbol with Insert in the 1st shift-level
// key { [ Help, Insert ] };
// The keys next to F12, labeled F13, F14, & F15 generate codes that XFree86
// claims not to generate. I think they should be equivalent to the PC keys
// Print Screen / SysRq, Scroll Lock, and Pause. Linux kernel bug?
// key { [ F13 ] }; // should be keycode 93 or
// key { [ F13 ] }; // should be keycode 118
// key { [ F14 ] }; // should be keycode 123 or
// key { [ F14 ] }; // should be keycode 119
// key { [ F15 ] }; // should be keycode 127 or
// key { [ F15 ] }; // should be keycode 120
};
partial modifier_keys
xkb_symbols "laptop" {
include "macintosh_vndr/apple(extended)"
// The real numlock key on the iBook (shared with F5) works internally to
// the keyboard. It illuminates the Num_Lock led and locks the fn-key to
// type only the keypad keys on the letter keys (U=4, I=5, O=6, P=*, etc.).
// The key in the Num_lock position is engraved with Clear.
override key { [ Clear ] };
// The key engraved Delete sends BKSP. To get Delete, use Shift-Delete
override key { [ BackSpace, Delete ] };
// These keyboards only generate a when pressing fn+Alt. This makes
// it impossible to get to the third shift level on keys that are on
// the fn-keypad, so use the Enter key (right of ) for Mode_switch,
// and use fn+Enter (Apple's code for Menu) for KP_Enter.
replace key { [ ISO_Level3_Shift ] };
modifier_map Mod5 { ISO_Level3_Shift };
// Linux kernel bug with Menu on macs means this does not work yet
// replace key