[tab] keyboards/annepro2/keymaps/miryoku/keymap.c (c)
 /* Copyright 2021 OpenAnnePro community
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 2 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */

  #include QMK_KEYBOARD_H

  enum layers {
      BASE,
      NAV,
      MOUSE,
      MEDIA,
      NUMBERS,
      SYMBOLS,
      FUN,
  };
  
  // Helper: use S(KC_...) for shifted symbols where needed.
  
  const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  
  /* BASE
     - home-row mod-taps from your ZMK config (mt left/right mods)
     - thumb cluster uses LT(...) to switch into NAV/MOUSE/MEDIA/NUMBERS/SYMBOLS/FUN
  */
  [BASE] = LAYOUT_60_ansi(
  /* Row 1 */
  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,
  /* Row 2 */
  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,
  /* Row 3 (home row with mod-taps) */
  LCTL_T(KC_ESC),   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), KC_SCLN, RGUI_T(KC_QUOT), KC_ENT,
  /* Row 4 */
  KC_LSFT,          KC_Z,    KC_X,    KC_C, KC_V, KC_B, KC_N,   KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_UP),
  /* Thumb cluster (8 keys) -- mapped from your &lt positions:
     LT(MEDIA, ESC) ; LT(NAV, SPACE) ; LT(MOUSE, TAB); transparent
     LT(SYMBOLS, ENTER) ; LT(NUMBERS, BSPC) ; transparent ; RCTL_T(RIGHT)
  */
  LT(MEDIA, KC_ESC), LT(NAV, KC_SPC), LT(MOUSE, KC_TAB), KC_TRNS, LT(SYMBOLS, KC_ENT), LT(NUMBERS, KC_BSPC), KC_TRNS, RCTL_T(KC_RGHT)
  ),
  
  /* NAV layer (ZMK "Nav")
     - clipboard shortcuts, arrows, caps, insert/page/home/end
     - bootloader mapped to RESET
  */
  [NAV] = LAYOUT_60_ansi(
  /* Row 1 */
  KC_TRNS, QK_BOOT,    KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, LCTL(KC_Y), LCTL(KC_V), LCTL(KC_C), LCTL(KC_X), LCTL(KC_Z), KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 2 */
  KC_TRNS, KC_LGUI,  KC_LALT, KC_LCTL, KC_LSFT, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 3 */
  KC_TRNS, KC_TRNS,  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_PGDN, KC_PGUP, KC_HOME, KC_END, KC_TRNS, KC_TRNS,
  /* Row 4 */
  KC_TRNS, KC_TRNS,  KC_TRNS, KC_TRNS, KC_ENT, KC_BSPC, KC_DEL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Thumbs */
  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
  ),
  
  /* MOUSE layer (ZMK "Mouse")
     - mouse movement and wheel, mouse buttons, and keep clipboard shortcuts on top row
  */
  [MOUSE] = LAYOUT_60_ansi(
  /* Row 1 */
  KC_TRNS, QK_BOOT,    KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, LCTL(KC_Y), LCTL(KC_V), LCTL(KC_C), LCTL(KC_X), LCTL(KC_Z), KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 2 */
  KC_TRNS, KC_LGUI,  KC_LALT, KC_LCTL, KC_LSFT, KC_TRNS, KC_MS_LEFT, KC_MS_DOWN, KC_MS_UP, KC_MS_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 3 */
  KC_TRNS, KC_TRNS,  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 4 */
  KC_TRNS, KC_TRNS,  KC_TRNS, KC_TRNS, KC_BTN2, KC_BTN1, KC_BTN3, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Thumbs */
  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
  ),
  
  /* MEDIA layer (ZMK "Media")
     - media controls, volume, playlist, Bluetooth select (kept Anne Pro special codes),
     - brightness/RGB mapped to AP-specific codes (as seen in stock AnnePro2 keymap)
  */
  [MEDIA] = LAYOUT_60_ansi(
  /* Row 1 */
  KC_GRV,  QK_BOOT,    KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_AP_RGB_VAD, KC_AP_RGB_VAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 2 */
  KC_TRNS, KC_LGUI,  KC_LALT, KC_LCTL, KC_LSFT, KC_TRNS, KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 3 */
  KC_TRNS, KC_TRNS,  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_AP2_BT1, KC_AP2_BT2, KC_AP2_BT3, KC_AP2_BT4, KC_TRNS, KC_TRNS,
  /* Row 4 */
  KC_TRNS, KC_TRNS,  KC_TRNS, KC_TRNS, KC_MUTE, KC_MPLY, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Thumbs */
  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
  ),
  
  /* NUMBERS layer (ZMK "Numbers")
     - numbers/numpad-like layout on alpha rows per your ZMK mapping
  */
  [NUMBERS] = LAYOUT_60_ansi(
  /* Row 1 */
  KC_TRNS, KC_LBRC,  KC_7, KC_8, KC_9, KC_RBRC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 2 */
  KC_TRNS, KC_SCLN,  KC_4, KC_5, KC_6, KC_EQL,  KC_TRNS, KC_RSFT, KC_RCTL, KC_RALT, KC_RGUI, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 3 */
  KC_TRNS, KC_GRV,   KC_1, KC_2, KC_3, KC_BSLS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 4 */
  KC_DOT, KC_0,      KC_MINS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Thumbs */
  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
  ),
  
  /* SYMBOLS layer (ZMK "Symbols")
     - uses S(KC_...) where sensible (shifted versions of existing keys)
  */
  [SYMBOLS] = LAYOUT_60_ansi(
  /* Row 1 */
  KC_TRNS, S(KC_LBRC), S(KC_7), S(KC_8), S(KC_9), S(KC_RBRC), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 2 */
  KC_TRNS, KC_COLN,    S(KC_4), S(KC_5), S(KC_6), S(KC_EQL), KC_TRNS, KC_RSFT, KC_RCTL, KC_RALT, KC_RGUI, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 3 */
  KC_TRNS, S(KC_GRV),  KC_EXLM, KC_AT, KC_HASH, KC_PIPE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 4 */
  S(KC_9), S(KC_0), S(KC_MINS), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Thumbs */
  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
  ),
  
  /* FUN layer (ZMK "Fun")
     - F1..F12 and application/menu key etc.
  */
  [FUN] = LAYOUT_60_ansi(
  /* Row 1 */
  KC_TRNS, KC_F12, KC_F7, KC_F8, KC_F9, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 2 */
  KC_TRNS, KC_F11, KC_F4, KC_F5, KC_F6, KC_TRNS, KC_TRNS, KC_RSFT, KC_RCTL, KC_RALT, KC_RGUI, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 3 */
  KC_TRNS, KC_F10, KC_F1, KC_F2, KC_F3, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Row 4 */
  KC_APP, KC_SPC, KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
  /* Thumbs */
  KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
  )
  }; // keymaps