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
45
46
47
48
49
50
51
52
53
54
55
56
57
|
enum macro_keycodes {
KC_CITRIX,
KC_MPASS,
KC_META,
KC_RTQ6H,
KC_DAYRN,
KC_3DRN,
KC_AUTODC,
KC_EMAIL,
KC_EMAIL2
};
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{
if (!eeconfig_is_enabled()) {
eeconfig_init();
}
switch (id) {
//my login macros
case KC_CITRIX:
if (record->event.pressed){
return MACRO (I(1), T(1), END);
}
case KC_MPASS:
if (record->event.pressed){
return MACRO (I(1), T(1), END);
}
case KC_META:
if (record->event.pressed){
return MACRO (I(1), T(1), END);
}
//my work macros
case KC_RTQ6H:
if (record->event.pressed){
return MACRO (I(1), T(TAB), T(0), T (3), T(0), T(0), T(TAB), T(DOWN), T(TAB), T(0), T (9), T(0), T(0), T(TAB), T(DOWN), T(TAB), T(1), T (5), T(0), T(0), T(TAB), T(DOWN), T(TAB), T(2), T (1), T(0), T(0), T(TAB), D(LALT), T(O), U(LALT), END);
}
case KC_AUTODC:
if (record->event.pressed){
return MACRO (I(1), D(LALT), T(V), U(LALT), T(TAB), T(TAB), T(TAB), T(TAB), T(TAB), T(TAB), T(TAB), T(TAB), T(TAB), T(T), T(TAB),T(N), D(LALT), T(S), U(LALT), END);
}
case KC_DAYRN:
if (record->event.pressed){
return MACRO (I(1), T(TAB), T(TAB), T(TAB), T(TAB), T(TAB), T(1), D(LALT), T(S), U(LALT), END);
}
//Ops macros
case KC_EMAIL:
if (record->event.pressed){
return MACRO (I(1), T(1), END); }
case KC_EMAIL2:
if (record->event.pressed){
return MACRO (I(1), T(1), END);
}
}
return MACRO_NONE;
}
|