aboutsummaryrefslogtreecommitdiffstats
path: root/users/pcoves/combo.c
blob: a9a1ffe9887a19bc2be4d6b30aade06cf5f811af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "quantum.h"

enum {
    MIN,
    EQL,

    ESC,
    BSP,
    DEL,

    TAB,
    BSL,

    CUT,
    GRA,
};

const uint16_t PROGMEM min[] = {KC_C, KC_V, COMBO_END};
const uint16_t PROGMEM eql[] = {KC_M, KC_COMM, COMBO_END};

const uint16_t PROGMEM esc[] = {KC_D, KC_F, COMBO_END};
const uint16_t PROGMEM bsp[] = {KC_J, KC_K, COMBO_END};
const uint16_t PROGMEM del[] = {KC_DOWN, KC_UP, COMBO_END};

const uint16_t PROGMEM tab[] = {KC_S, KC_F, COMBO_END};
const uint16_t PROGMEM bsl[] = {KC_J, KC_L, COMBO_END};

const uint16_t PROGMEM cut[] = {KC_K, KC_L, COMBO_END};
const uint16_t PROGMEM gra[] = {KC_S, KC_D, COMBO_END};

combo_t key_combos[COMBO_COUNT] = {
    [MIN] = COMBO(min, KC_MINS),
    [EQL] = COMBO(eql, KC_EQL),

    [ESC] = COMBO(esc, KC_ESC),
    [BSP] = COMBO(bsp, KC_BSPC),
    [DEL] = COMBO(del, KC_DEL),

    [TAB] = COMBO(tab, KC_TAB),
    [BSL] = COMBO(bsl, KC_BSLS),

    [CUT] = COMBO(cut, KC_QUOT),
    [GRA] = COMBO(gra, KC_GRAVE),
};