diff options
Diffstat (limited to 'users/ibnuda/combo.h')
| -rw-r--r-- | users/ibnuda/combo.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/users/ibnuda/combo.h b/users/ibnuda/combo.h new file mode 100644 index 000000000..a9fa69d22 --- /dev/null +++ b/users/ibnuda/combo.h | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | #pragma once | ||
| 2 | #include "quantum.h" | ||
| 3 | |||
| 4 | // enum for combos. | ||
| 5 | enum combos { | ||
| 6 | // left hand combinations. | ||
| 7 | COLON_COMMA, | ||
| 8 | COMMA_DOT, | ||
| 9 | DOT_P, | ||
| 10 | QUOT_Q, | ||
| 11 | Q_J, | ||
| 12 | J_K, | ||
| 13 | |||
| 14 | // right hand combinations. | ||
| 15 | L_R, | ||
| 16 | R_C, | ||
| 17 | C_G, | ||
| 18 | V_W, | ||
| 19 | W_M, | ||
| 20 | |||
| 21 | // both hands combinations. | ||
| 22 | J_W, | ||
| 23 | }; | ||
| 24 | |||
| 25 | // left hand combinations. | ||
| 26 | const uint16_t PROGMEM colon_comma_combo[] = {KC_SCLN, KC_COMM, COMBO_END}; | ||
| 27 | const uint16_t PROGMEM comma_dot_combo[] = {KC_COMM, KC_DOT, COMBO_END}; | ||
| 28 | const uint16_t PROGMEM dot_p_combo[] = {KC_DOT, KC_P, COMBO_END}; | ||
| 29 | const uint16_t PROGMEM quot_q_combo[] = {KC_QUOT, KC_Q, COMBO_END}; | ||
| 30 | const uint16_t PROGMEM q_j_combo[] = {KC_Q, KC_J, COMBO_END}; | ||
| 31 | const uint16_t PROGMEM j_k_combo[] = {KC_J, KC_K, COMBO_END}; | ||
| 32 | |||
| 33 | // right hand combinations. | ||
| 34 | const uint16_t PROGMEM l_r_combo[] = {KC_L, KC_R, COMBO_END}; | ||
| 35 | const uint16_t PROGMEM r_c_combo[] = {KC_R, KC_C, COMBO_END}; | ||
| 36 | const uint16_t PROGMEM c_g_combo[] = {KC_C, KC_G, COMBO_END}; | ||
| 37 | const uint16_t PROGMEM v_w_combo[] = {KC_V, KC_W, COMBO_END}; | ||
| 38 | const uint16_t PROGMEM w_m_combo[] = {KC_W, KC_M, COMBO_END}; | ||
| 39 | |||
| 40 | // both hand combinations. | ||
| 41 | const uint16_t PROGMEM j_w_combo[] = {KC_J, KC_W, COMBO_END}; | ||
| 42 | |||
| 43 | combo_t key_combos[COMBO_COUNT] = { | ||
| 44 | // left hand combinations. | ||
| 45 | [COLON_COMMA] = COMBO(colon_comma_combo, KC_TAB), | ||
| 46 | [COMMA_DOT] = COMBO(comma_dot_combo, KC_QUES), | ||
| 47 | [DOT_P] = COMBO(dot_p_combo, KC_UNDS), | ||
| 48 | [QUOT_Q] = COMBO(quot_q_combo, KC_ENT), | ||
| 49 | [Q_J] = COMBO(q_j_combo, LCTL(KC_W)), | ||
| 50 | [J_K] = COMBO(j_k_combo, KC_DELT), | ||
| 51 | |||
| 52 | // right hand combinations. | ||
| 53 | [L_R] = COMBO(l_r_combo, KC_BSPC), | ||
| 54 | [R_C] = COMBO(r_c_combo, KC_SLSH), | ||
| 55 | [C_G] = COMBO(c_g_combo, KC_MINS), | ||
| 56 | [V_W] = COMBO(v_w_combo, KC_APP), | ||
| 57 | [W_M] = COMBO(w_m_combo, KC_DELT), | ||
| 58 | |||
| 59 | // both hand combinations. | ||
| 60 | [J_W] = COMBO(j_w_combo, KC_ENT), | ||
| 61 | }; | ||
