[tab] keyboards/annepro2/keymaps/calmar_one-backup/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,
  NAV,       // Right-hand: navigation/edit
  HYPER,     // Right-hand: Hyper combos + mouse movement/wheel
  MOUSE,     // Right-hand: mouse emulation
  MEDIA,     // Right-hand: media / BT controls
  NUM,       // Left-hand: numpad
  SYM,       // Left-hand: shifted symbols
  FUN,       // Left-hand: function/system
  NUMBERS,   // Separate numbers 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 with Miryoku-style home row mods and thumb LTs) */
  [BASE] = LAYOUT_60_ansi(
    KC_ESC,  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,
    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,
    KC_CAPS, LGUI_T(KC_A), LALT_T(KC_S), LCTL_T(KC_D), LSFT_T(KC_F), KC_G, KC_H, RSFT_T(KC_J), RCTL_T(KC_K), RALT_T(KC_L), RGUI_T(KC_SCLN), KC_QUOT, KC_ENT,
    KC_LSFT,          LT(HYPER, KC_Z), LT(NUM, KC_X), KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_SLSH),
    MT(MOD_LALT, KC_TAB), KC_SPC, LT(MOUSE, KC_LGUI),                   KC_SPC,      LT(NAV, KC_ENT), LT(SYM, KC_BSPC), _______, KC_RCTL
  ),

  /* NAV (Right-hand: arrows/edit; duplicate thumb taps) */
  [NAV] = LAYOUT_60_ansi(
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT,
    _______, _______, KC_TILD, KC_PIPE, KC_GRV, _______, LCTL(KC_Z), LCTL(KC_Y), LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), _______, _______, _______,
    _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP,  KC_RGHT, _______, _______, _______,
    _______,          _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______,
    KC_ESC,  KC_TAB,  KC_LALT,                   KC_SPC,            KC_BSPC, KC_ENT, KC_DEL, KC_RCTL
  ),

  /* HYPER (Right-hand: Hyper combos + mouse movement/wheel; mouse buttons on thumbs) */
  [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_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)), MS_LEFT,  MS_DOWN,  MS_UP,   MS_RGHT,    S(A(KC_O)),    _______, _______, _______,
    _______, S(A(KC_Z)), S(A(KC_X)), A(S(KC_C)), S(A(KC_D)),  A(S(KC_V)), MS_WHLL,  MS_WHLD,  MS_WHLU, MS_WHLR,    S(A(KC_MINS)), _______, _______,
    S(A(KC_F7)),        S(A(KC_F8)), KC_LGUI,    S(A(KC_F10)), MS_BTN1,   MS_BTN2,  S(A(KC_F13)), _______, _______, _______, _______, _______,
    KC_ESC,  KC_TAB,  KC_LALT,                   KC_SPC,            MS_BTN1, MS_BTN2, MS_BTN3, KC_RCTL
  ),

  /* MOUSE (Right-hand: mouse; movement mirrors NAV; buttons on right thumbs) */
  [MOUSE] = LAYOUT_60_ansi(
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, _______, _______, _______, _______, _______, LCTL(KC_Z), LCTL(KC_Y), LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), _______, _______, _______,
    _______, _______, _______, _______, _______, _______, MS_LEFT, MS_DOWN, MS_UP,   MS_RGHT, _______, _______, _______,
    _______,          _______, _______, _______, _______, _______, _______, MS_WHLD, MS_WHLU, _______, _______, _______,
    KC_ESC,  KC_TAB,  KC_LALT,                   KC_SPC,            MS_BTN1, MS_BTN2, MS_BTN3, KC_RCTL
  ),

  /* MEDIA (Right-hand: media; RGB and BT controls inline) */
  [MEDIA] = 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, _______, _______, _______, _______, _______, _______,
    KC_ESC, KC_TAB, KC_LALT,                   KC_SPC,            KC_MPLY, KC_MSTP, KC_MUTE, KC_RCTL
  ),

  /* NUM (Left-hand primary: numerals/symbols; duplicate thumbs) */
  [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, _______, _______,
    _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    KC_ESC, KC_TAB, KC_LALT,                    KC_SPC,            KC_BSPC, KC_ENT, KC_DEL, KC_RCTL
  ),

  /* SYM (Left-hand secondary: shifted symbols; duplicate thumbs) */
  [SYM] = LAYOUT_60_ansi(
    _______, _______, S(KC_QUOT), KC_QUOT, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS, KC_MINS, _______, _______,
    _______, KC_EXLM, KC_AT,      KC_HASH, KC_DLR,  KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, _______, _______,
    _______, KC_1,    KC_2,       KC_3,    KC_4,    KC_5,    KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    _______, _______,
    _______,          _______,    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    KC_ESC, KC_TAB, KC_LALT,                    KC_SPC,            KC_BSPC, KC_ENT, KC_DEL, KC_RCTL
  ),

  /* FUN (Left-hand tertiary: function keys; duplicate thumbs) */
  [FUN] = 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_F12, _______,
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT, _______,
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    KC_ESC, KC_TAB, KC_LALT,                    KC_SPC,            KC_BSPC, KC_ENT, KC_DEL, KC_RCTL
  ),

  /* NUMBERS (Separate: numbers on home row; duplicate thumbs) */
  [NUMBERS] = LAYOUT_60_ansi(
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______, KC_1,    KC_2,    KC_3,    KC_4,    KC_5,    KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    _______, _______, _______,
    _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    _______,          _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
    KC_ESC, KC_TAB, KC_LALT,                    KC_SPC,            KC_BSPC, KC_ENT, KC_DEL, KC_RCTL
  ),

  /* 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