oh boy… i found my fault: the order in which the layouts are defined has to match the order of the enum… when copying i mixed that up it seems…
but just for those interested, this is my current list of layouts:
KEYMAPS(
[PRIMARY] = KEYMAP_STACKED
(Key_Escape, Key_1, Key_2, Key_3, Key_4, Key_5, LT(NUMPAD,LEDEffectNext),
Key_Tab, Key_Q, Key_W, Key_E, Key_R, Key_T, Key_Meh,
ShiftToLayer(SPECIAL), Key_A, Key_S, Key_D, Key_F, Key_G,
Key_LeftShift, CTL_T(Z), Key_X, Key_C, Key_V, Key_B, LT(NUMPAD,Equals),
Key_Backspace, Key_Delete, Key_LeftGui, Key_LeftAlt,
ShiftToLayer(FUNCTION),
LockLayer(XOY), Key_6, Key_7, Key_8, Key_9, Key_0, Key_Minus,
Key_Hyper, Key_Y, Key_U, Key_I, Key_O, Key_P, Key_LeftBracket,
Key_H, Key_J, Key_K, Key_L, Key_Semicolon, Key_Quote,
Key_Backslash, Key_N, Key_M, Key_Comma, Key_Period, MT(RightControl,Slash), MT(RightShift,RightBracket),
Key_RightAlt, Key_RightGui, Key_Enter, Key_Space,
ShiftToLayer(FUNCTION)),
[NUMPAD] = KEYMAP_STACKED
(___, ___, ___, ___, ___, ___, M(MACRO_VERSION_INFO),
___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___,
___,
___, ___, Key_7, Key_8, Key_9, Key_KeypadSubtract, ___,
___, ___, Key_4, Key_5, Key_6, Key_KeypadAdd, ___,
___, Key_1, Key_2, Key_3, Key_Equals, ___,
___, ___, Key_0, Key_Period, Key_KeypadMultiply, Key_KeypadDivide, Key_Enter,
___, ___, ___, ___,
___),
[SPECIAL] = KEYMAP_STACKED
(___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___,
___,
M(MACRO_VERSION_INFO), ___, ___, ___, ___, ___, ___,
___, LALT(Key_7), LALT(Key_5), LALT(Key_6), LALT(LSHIFT(Key_6)), LALT(LSHIFT(Key_Equals)), ___,
LSHIFT(Key_7), LSHIFT(Key_8), LSHIFT(Key_9), LALT(Key_8), LALT(Key_9), ___,
___, LALT(LSHIFT(Key_7)), Key_Backtick, LSHIFT(Key_Backtick), ___, ___, ___,
___, ___, ___, ___,
___),
[XOY] = KEYMAP_STACKED
(___, ___, ___, ___, ___, ___, ___,
___, Key_X, Key_Comma, Key_O, Key_Period, Key_Z, ___,
___, Key_H, Key_A, Key_E, Key_I, Key_U,
___, CTL_T(K), Key_Q, Key_Quote, Key_LeftBracket, Key_Semicolon, ___,
___, ___, ___, ___,
___,
M(MACRO_VERSION_INFO), ___, ___, ___, ___, ___, ___,
___, Key_V, Key_G, Key_C, Key_L, Key_J, Key_Minus,
Key_D, Key_T, Key_R, Key_N, Key_S, ALT_T(F),
___, Key_B, Key_P, Key_W, Key_M, CTL_T(Y), ___,
___, ___, ___, ___,
___),
[MCS] = KEYMAP_STACKED
(___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___,
___,
M(MACRO_VERSION_INFO), ___, ___, ___, ___, ___, ___,
___, LALT(Key_7), LALT(Key_5), LALT(Key_6), LALT(LSHIFT(Key_6)), LALT(LSHIFT(Key_Equals)), ___,
LSHIFT(Key_7), LSHIFT(Key_8), LSHIFT(Key_9), LALT(Key_8), LALT(Key_9), ___,
___, LALT(LSHIFT(Key_7)), Key_Backtick, LSHIFT(Key_Backtick), ___, ___, ___,
___, ___, ___, ___,
___),
[FUNCTION] = KEYMAP_STACKED
(___, Key_F1, Key_F2, Key_F3, Key_F4, Key_F5, Consumer_Mute,
Key_Tab, ___, ___, ___, ___, ___, Consumer_VolumeIncrement,
___, ___, ___ , ___, ___, ___,
___, Key_PrintScreen, Key_Insert, ___, ___, ___, Consumer_VolumeDecrement,
___, Key_Delete, ___, ___,
___,
Consumer_PlaySlashPause, Key_F6, Key_F7, Key_F8, Key_F9, Key_F10, Key_F11,
Consumer_ScanPreviousTrack, ___, Key_PageUp, Key_UpArrow, Key_PageDown, ___, Key_F12,
Key_Home, Key_LeftArrow, Key_DownArrow, Key_RightArrow, Key_End, ___,
Consumer_ScanNextTrack, ___, ___, ___, ___, ___, ___,
___, ___, Key_Enter, ___,
___)
) // KEYMAPS(