// Per layer combo reference layers.
// Default is current layer, or COMBO_REF_DEFAULT if set.
// _COMBO_REF is the default if enabled.

//COMBO_REF_LAYER(_DVORAK_BP, _COMBO_REF2)
COMBO_REF_LAYER(_NAV, _NAV)


// COMBOS
//   name      result           chord keys

// sml nav, sml keypad, zqxj, onshot accents, oneshot symbols
// home, end, caps word, accents? -> aeeecio oe, ao,


// reference COMBO_REF
COMB(TSCTL,      TS_LCTL,       CB_1L3, CB_1L4)
COMB(SMLNAV1,    SML_NAV,       CB_1L2, CB_1L3)
COMB(OSACCENTMT, SML_KEYPAD,    CB_1L2, CB_1R4)

#ifdef TOPROWS_LAYER_ENABLE
COMB(OSTOPROWS,  SML_TOPROWS,   CB_1L3, CB_1R3)
#endif

//COMB(OSlsftT,    OS_LSFT,       CB_1L4, CB_1R2)
COMB(OSSFT,      OS_LSFT,        CB_2L4, CB_2R2)
COMB(TSCTL2,     TS_LCTL,       CB_1L4, CB_1R2)

// COMB(SMLNAV,  SML_NAV,        CB_2L4, CB_2R2)
COMB(OSCTL,      OS_LCTL,        CB_2L2, CB_2R4)

COMB(OSACCENTM, OSL_ACCENTS_MORTE,  CB_2L3, CB_2R3)

COMB(capsword,  CAPS_WORD,      CB_3L4, CB_3R2)
COMB(OSRALT,    OS_RALT,        CB_3L3, CB_3R3)
COMB(OSLALT2,   OS_LALT,        CB_3L2, CB_3R4)

COMB(OSLAYER,   LAYER_OSL,      CB_3L1, CB_3R5)
COMB(OSLSYMB,   OSL_SYMB,       CB_TH2, CB_TH5)
COMB(LNAV,      SML_NAV,        CB_TH3, CB_TH4)

COMB(_Q,  KC_Q, CB_3L2, CB_3L3)
COMB(_X,  KC_X, CB_3L3, CB_3L4)
COMB(_Z,  KC_Z, CB_3R3, CB_3R4)

// vertical thumb combos for the kyria
//COMB(xxx,      xxx,            CB_TH2, CB_0TH1)

#ifdef MEDIA_LAYER_ENABLE
COMB(SMLMEDIA,      SML_MEDIA,            CB_TH3, CB_0TH2)
#endif

COMB(OSLACCENT2,    OSL_ACCENTS_MORTE,        CB_TH4, CB_0TH3)
COMB(KEYPAD,   SML_KEYPAD,     CB_TH5, CB_0TH4)



// reference COMBO_REF2

#if defined(SECOND_LOCALE) && (SECOND_LOCALE == BEPO)
COMB(TSCTL_BP,     TS_LCTL,        CB_1L3, CB_1L4)
COMB(SMLNAV1_bp,   SML_NAV,        CB_1L2, CB_1L3)

#ifdef ACCENTS_MORTE_LAYER_ENABLE
COMB(OSLACCENT_bp, OSL(_ACCENTS_MORTE_BP),  CB2_2L1, CB2_2L2)
#endif

COMB(SMLNAV_BP,    SML_NAV,        CB2_2L2, CB2_2L3)
COMB(OSCTL_BP,     OS_LCTL,        CB2_2L3, CB2_2L4)

COMB(OSSFT_BP,     OS_LSFT,        CB2_2R2, CB2_2R3)
// COMB(SMLKEYPAD_BP, SML_KEYPAD_BP,  CB2_2R3, CB2_2R4)

COMB(capsword_BP,  CAPS_WORD_ON,   CB2_3L4, CB2_3R2)

// COMB(OSLSYMBP_BP,  OSL(_SYMB_BP),  CB2_TH2, CB2_TH5)
COMB(LNAV_BP,      SML_NAV,        CB2_TH3, CB2_TH4)

COMB(_Qbp,  BP_Q, CB2_3L2, CB2_3L3)
COMB(_Xbp,  BP_X, CB2_3L3, CB2_3L4)
COMB(_Zbp,  BP_Z, CB2_3R3, CB2_3R4)
#endif


// Reference nav layer
COMB(END_nav,   KC_END,  KC_PGUP, KC_PGDN)
COMB(HOME_nav,  KC_HOME, KC_UP,   KC_DOWN)


//COMB(JKL_SPC,  KC_SPC,   KC_J,  KC_X)
//SUBS(TH_THE,   "the",    KC_T,  KC_H) // SUBS uses SEND_STRING to output the given string.

// from possum vibes to review.
/*    COMBO NAME       | OUTPUT    | PARAMS    */

// /*---- TOP ROW ----*/
// COMB(turbonav,          NAV_TG,     KC_W, KC_R)         // Nav access
// COMB(save,              S_SAVE,     KC_E, KC_R)         // Save
// COMB(back_fwd,          BCK_FWD,    KC_R, KC_T)         // Back/Fwd (shifted)

// COMB(undo_redo,         UND_RED,    KC_Y, KC_U)         // Undo/Redo (shifted)
// COMB(esc,               KC_ESC,     KC_U, KC_O)         // Esc

// #ifdef IS_PINKY_CLUSTER
// COMB(delete,            KC_DEL,     KC_A, KC_SCLN)
// COMB(caps,              KC_CAPS,    KC_Q, KC_P)
// #endif

// /*---- HOME ROW ----*/
// COMB(cut,               S_CUT,      KC_S, KC_F)         // Shift+Del (cut)
// COMB(copy,              S_COPY,     KC_S, KC_D)         // Ctrl+Ins (copy)
// COMB(paste,             S_PASTE,    KC_D, KC_F)         // Shift+Del (paste)
// COMB(panic,             PANIC,      KC_D, KC_K)         // panic!

// COMB(nummode,           NUMMODE,    KC_J, KC_K)         // Nummode toggle
// COMB(symmode,           SYM_TG,     KC_K, KC_L)         // Sym layer
// COMB(tab,               KC_TAB,     KC_K, KC_M)         // Tab


// /*---- BOTTOM ROW ----*/
// COMB(hash,              KC_HASH,    KC_X, KC_C)         // #
// COMB(fslash,            KC_SLSH,    KC_C, KC_V)         // /

// COMB(dash,              KC_MINS,    KC_M, KC_COMM)      // -
// COMB(asterisk,          KC_ASTR,    KC_COMM, KC_DOT)    // *
// COMB(at,                KC_AT,      KC_M, KC_DOT)       // @


// /*---- THUMBS ----*/
// COMB(sys_lthm,          SYS_OSL,    KC_B, KC_ENT)       // Sys OSL

// COMB(space_shift,       SPC_SFT,    KC_TAB, KC_SPC)     // space and activate oss

// COMB(underscore_rthm,   KC_UNDS,    KC_SPC, KC_N)       // _

// /*---- THUMB+ALPHAS ----*/
// // COMB(os_fun,            FUN_OSL,    KC_ENT, KC_C)       // OS Func
// // COMB(os_num,            NUM_OSL,    KC_A, KC_F)         // OSL num
// // COMB(os_sym,            SYM_OSL,    KC_SPC, KC_M)       // OSL sym
