[tab] keyboards/annepro2/keymaps/calmar_one/keymap.c (c)
/* Calmar One keymap for Anne Pro 2
 *
 * Approximates the user's ZMK layout:
 * - Layers: BASE, SYM (Special-Chars), NAV (Arrows), HYPER (Mouse/Hyper combos), NUM (Numpad), FKEY (F-keys/Media), NUMBERS, BT (Bluetooth)
 */

#include QMK_KEYBOARD_H

enum anne_pro_layers {
  BASE,
  SYM,       // Special-Chars
  NAV,       // Arrows / system
  HYPER,     // Mouse + Hyper combos
  NUM,       // Numpad
  FKEY,      // F-keys / Media / Brightness
  NUMBERS,   // Number row on home row
  BT         // Bluetooth controls
};

// Convenience alias for transparent
#define _______ KC_TRNS

// clang-format off
const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  /* BASE (QWERTY-ish, with mods and layer-taps approximating ZMK) */
  [BASE] = LAYOUT_60_ansi(
    LT(FKEY, KC_DEL), KC_1,    KC_2,    KC_3,   KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,  KC_MINS, KC_EQL,  KC_BSPC,
    MT(MOD_LALT, KC_TAB), KC_Q, KC_W,    KC_E,   KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,  KC_LBRC, KC_RBRC, KC_BSLS,
    MT(MOD_LCTL, KC_ESC), KC_A, KC_S,    KC_D,   KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, RCTL_T(KC_SCLN), KC_QUOT, KC_ENT,
    LSFT_T(KC_F13),       LT(HYPER, KC_Z), LT(NUM, KC_X), KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH), RSFT_T(KC_SLSH),
    KC_LCTL,       KC_LGUI, KC_LALT,              KC_SPC,            KC_RALT, LT(NAV, KC_ENT), LT(SYM, KC_BSPC), RCTL_T(KC_RGHT)
  ),

  /* SYM (Special-Chars) */
  [SYM] = LAYOUT_60_ansi(
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, KC_EXLM, KC_AT,   KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_LPRN, KC_RPRN, KC_MINS, KC_LBRC, KC_RBRC, KC_BSLS,
    _______, KC_1,    KC_2,    KC_3,    KC_4,   KC_5,    KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    KC_EQL,  _______,
    _______,          _______,  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______,                   _______,          _______, _______, _______, _______
  ),

  /* NAV (Arrows / System) */
  [NAV] = LAYOUT_60_ansi(
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP,  KC_RGHT, _______, _______, _______,
    _______,          KC_BRID, KC_BRIU, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______,                   _______,          _______, _______, _______, _______
  ),

  /* HYPER (Mouse / Hyper combos) */
  [HYPER] = LAYOUT_60_ansi(
    _______, S(A(KC_Q)), S(A(KC_W)), S(A(KC_F)), S(A(KC_P)), S(A(KC_B)), KC_BTN3,  KC_TAB,   S(KC_TAB), S(A(KC_Y)), S(A(KC_SLSH)), _______, _______,
    _______, S(A(KC_A)), S(A(KC_R)), KC_TAB,     S(KC_TAB),   S(A(KC_G)), KC_MS_L,  KC_MS_D,  KC_MS_U,   KC_MS_R,    S(A(KC_O)),    _______, _______,
    _______, S(A(KC_Z)), S(A(KC_X)), A(S(KC_C)), S(A(KC_D)),  A(S(KC_V)), KC_WH_L,  KC_WH_D,  KC_WH_U,   KC_WH_R,    S(A(KC_MINS)), _______,
    S(A(KC_F7)),        S(A(KC_F8)), KC_LGUI,    S(A(KC_F10)), KC_BTN1,   KC_BTN2,  S(A(KC_F13)), _______, _______, _______, _______, _______,
    _______, _______, _______,                      _______,          _______, _______, _______, _______
  ),

  /* NUM (Numpad on right side) */
  [NUM] = LAYOUT_60_ansi(
    _______, _______, _______, _______, _______, _______, _______, KC_P7, KC_P8, KC_P9, _______, _______, _______, _______,
    _______, _______, _______, KC_PSLS, KC_EQL,  _______, _______, KC_P4, KC_P5, KC_P6, KC_PPLS, _______, _______, _______,
    _______, _______, _______, _______, KC_PAST, _______, KC_P0,  KC_P1, KC_P2, KC_P3, KC_PMNS, _______, _______,
    _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______,                   _______,          _______, _______, _______, _______
  ),

  /* FKEY (F-Keys / Media / Brightness) */
  [FKEY] = LAYOUT_60_ansi(
    _______, KC_F1,   KC_F2,   KC_F3,   KC_F4,   KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______,
    _______, _______, _______, _______, _______, _______, _______, KC_BRID, KC_BRIU, _______, _______, QK_BOOT, _______,
    _______, _______, _______, _______, _______, _______, _______, KC_MUTE, _______, _______, _______, _______, _______,
    KC_MPRV, KC_MPLY, KC_MNXT, _______, KC_VOLD, KC_VOLU, _______, _______, _______, _______, _______, _______,
    _______, _______, _______,                   _______,          _______, _______, _______, _______
  ),

  /* NUMBERS (Numbers on home row) */
  [NUMBERS] = LAYOUT_60_ansi(
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, KC_1,    KC_2,    KC_3,    KC_4,    KC_5,    KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    _______, _______, _______,
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______,                   _______,          _______, _______, _______, _______
  ),

  /* BT (Bluetooth controls for Anne Pro 2) */
  [BT] = LAYOUT_60_ansi(
    _______, KC_AP2_BT_UNPAIR, _______, _______, KC_AP2_USB, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______, _______, KC_AP2_BT1, KC_AP2_BT2, KC_AP2_BT3, KC_AP2_BT4, _______, _______, _______, _______, _______, _______,
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______,                   _______,          _______, _______, _______, _______
  ),
};
// clang-format on