forked from manna-harbour/miryoku_zmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
miryoku.dtsi
59 lines (48 loc) · 1.38 KB
/
miryoku.dtsi
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
58
59
// Copyright 2022 Manna Harbour
// https://github.com/manna-harbour/miryoku
#include <behaviors.dtsi>
#include <behaviors/mouse_key_press.dtsi>
#if defined (MIRYOKU_KLUDGE_MOUSEKEYSPR)
#include <behaviors/mouse_move.dtsi>
#include <behaviors/mouse_scroll.dtsi>
#endif
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/ext_power.h>
#include "miryoku.h"
#include <dt-bindings/zmk/mouse.h>
/ {
keymap {
compatible = "zmk,keymap";
#define MIRYOKU_X(LAYER, STRING) \
LAYER { \
display-name = STRING; \
bindings = < U_MACRO_VA_ARGS(MIRYOKU_LAYERMAPPING_##LAYER, MIRYOKU_LAYER_##LAYER) >; \
};
MIRYOKU_LAYER_LIST
#undef MIRYOKU_X
};
};
#include "miryoku_shift_functions.dtsi"
#include "miryoku_double_tap_guard.dtsi"
#if defined (MIRYOKU_KLUDGE_MOUSEKEYSPR)
#include "miryoku_kludge_mousekeyspr.dtsi"
#else
#include "miryoku_mousekeys.dtsi"
#endif
#if defined (MIRYOKU_KLUDGE_THUMBCOMBOS)
#include "miryoku_kludge_thumbcombos.dtsi"
#endif
#if defined (MIRYOKU_KLUDGE_TOPROWCOMBOS)
#include "miryoku_kludge_toprowcombos.dtsi"
#endif
#if defined (MIRYOKU_KLUDGE_BOTTOMROWCOMBOS)
#include "miryoku_kludge_bottomrowcombos.dtsi"
#endif
#if defined (MIRYOKU_KLUDGE_TAPDELAY)
#include "miryoku_kludge_tapdelay.dtsi"
#else
#include "miryoku_behaviors.dtsi"
#endif