You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

  1. #include "combo.h"
  2. enum combos {
  3. JK_ESC,
  4. YU_COM,
  5. UI_COM,
  6. IO_COM,
  7. QW_COM,
  8. DOT_SLS,
  9. COM_DOT,
  10. M_COMM,
  11. N_M,
  12. OP_COM,
  13. M_CM_DOT,
  14. };
  15. const uint16_t PROGMEM ui_combo[] = {KC_U, KC_I, COMBO_END};
  16. const uint16_t PROGMEM jk_combo[] = {KC_J, KC_K, COMBO_END};
  17. const uint16_t PROGMEM yu_combo[] = {KC_Y, KC_U, COMBO_END};
  18. const uint16_t PROGMEM io_combo[] = {KC_I, KC_O, COMBO_END};
  19. const uint16_t PROGMEM qw_combo[] = {KC_Q, KC_W, COMBO_END};
  20. const uint16_t PROGMEM dot_sls[] = {KC_DOT, KC_SLSH, COMBO_END};
  21. const uint16_t PROGMEM com_dot[] = {KC_COMMA, KC_DOT, COMBO_END};
  22. const uint16_t PROGMEM m_comm[] = {KC_M, KC_COMMA, COMBO_END};
  23. const uint16_t PROGMEM n_m[] = {KC_N, KC_M, COMBO_END};
  24. const uint16_t PROGMEM o_p_combo[] = {KC_O, KC_P, COMBO_END};
  25. const uint16_t PROGMEM m_cm_dot_combo[] = {KC_M, KC_COMMA, KC_DOT, COMBO_END};
  26. combo_t key_combos[COMBO_COUNT] = {
  27. [JK_ESC] = COMBO(jk_combo, KC_ESC),
  28. [YU_COM] = COMBO(yu_combo, KC_AMPR),
  29. [UI_COM] = COMBO(ui_combo, KC_CIRC),
  30. [IO_COM] = COMBO(io_combo, KC_TILD),
  31. [DOT_SLS] = COMBO(dot_sls, KC_EXLM),
  32. [COM_DOT] = COMBO(com_dot, KC_QUES),
  33. [N_M] = COMBO(n_m, KC_DLR),
  34. [OP_COM] = COMBO(o_p_combo, KC_HASH),
  35. // m + , = {
  36. [M_COMM] = COMBO(m_comm, KC_LCBR),
  37. // m + , + . = }
  38. // [M_CM_DOT] = COMBO(m_cm_dot_combo, KC_RCBR),
  39. // Right hand side combos
  40. [QW_COM] = COMBO(qw_combo, KC_AT),
  41. };