2020-05-17 07:30:30 +10:00
|
|
|
#include <dt-bindings/zmk/keys.h>
|
2020-06-20 05:32:33 +10:00
|
|
|
#include <behaviors/key_press.dtsi>
|
|
|
|
#include <behaviors/reset.dtsi>
|
2020-06-20 14:11:39 +10:00
|
|
|
#include <behaviors/keymap.dtsi>
|
2020-05-19 03:42:41 +10:00
|
|
|
#include <keymap.h>
|
2020-05-17 07:30:30 +10:00
|
|
|
|
|
|
|
/ {
|
|
|
|
chosen {
|
|
|
|
zmk,keymap = &keymap0;
|
2020-06-20 14:11:39 +10:00
|
|
|
zmk,global_bindings = &bindings;
|
|
|
|
};
|
|
|
|
|
|
|
|
bindings: global_bindings {
|
|
|
|
compatible = "zmk,global-bindings";
|
|
|
|
bindings = <&reset>;
|
2020-05-17 07:30:30 +10:00
|
|
|
};
|
|
|
|
keymap0: keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
label ="Default keymap";
|
|
|
|
layers = <&default &lower &raise>;
|
|
|
|
};
|
|
|
|
|
|
|
|
layers {
|
|
|
|
compatible = "zmk,layers";
|
|
|
|
|
|
|
|
default: layer_0 {
|
2020-05-19 03:42:41 +10:00
|
|
|
label = "DEFAULT";
|
2020-05-17 07:30:30 +10:00
|
|
|
keys =
|
|
|
|
<
|
2020-06-03 01:23:22 +10:00
|
|
|
KC_A MT(MOD_LSFT, KC_B) ZC_NO ZC_NO
|
|
|
|
CC_RAIS CC_LOWR ZC_NO ZC_NO
|
2020-05-17 07:30:30 +10:00
|
|
|
>;
|
2020-06-20 05:32:33 +10:00
|
|
|
bindings = <
|
|
|
|
&reset &kp 0
|
|
|
|
&kp 1 &kp 2>;
|
2020-05-17 07:30:30 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
lower: layer_1 {
|
2020-05-19 03:42:41 +10:00
|
|
|
label = "LOWER";
|
2020-06-03 01:23:22 +10:00
|
|
|
keys = <
|
|
|
|
KC_MPLY KC_MNXT ZC_NO ZC_NO
|
|
|
|
ZC_TRNS ZC_TRNS ZC_NO ZC_NO
|
|
|
|
>;
|
2020-06-20 05:32:33 +10:00
|
|
|
|
|
|
|
bindings = <
|
|
|
|
&reset &kp 0
|
|
|
|
&kp 1 &kp 2>;
|
2020-05-17 07:30:30 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
raise: layer_2 {
|
2020-05-19 03:42:41 +10:00
|
|
|
label = "RAISE";
|
2020-06-03 01:23:22 +10:00
|
|
|
keys = <
|
|
|
|
KC_C KC_D ZC_NO ZC_NO
|
|
|
|
ZC_TRNS ZC_TRNS ZC_NO ZC_NO>;
|
2020-06-20 05:32:33 +10:00
|
|
|
|
|
|
|
bindings = <
|
|
|
|
&reset &kp 0
|
|
|
|
&kp 1 &kp 2>;
|
2020-05-17 07:30:30 +10:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|