diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-05-16 17:30:30 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-05-16 17:30:30 -0400 |
commit | 644a05a2744d739f29a39c3de70ed1cdb930eedf (patch) | |
tree | 8c7adaeafc7b3ee5d87f804c19be999bce4db6dd /boards | |
parent | dffedab7fff04770b919974a9e57c72ea364ecfa (diff) |
Keymap directory support.
Diffstat (limited to 'boards')
-rw-r--r-- | boards/shields/petejohanson_handwire/keymaps/petejohanson/keymap.overlay | 35 | ||||
-rw-r--r-- | boards/shields/petejohanson_handwire/petejohanson_handwire.overlay | 32 |
2 files changed, 35 insertions, 32 deletions
diff --git a/boards/shields/petejohanson_handwire/keymaps/petejohanson/keymap.overlay b/boards/shields/petejohanson_handwire/keymaps/petejohanson/keymap.overlay new file mode 100644 index 0000000..9e7d3d8 --- /dev/null +++ b/boards/shields/petejohanson_handwire/keymaps/petejohanson/keymap.overlay @@ -0,0 +1,35 @@ +#include <dt-bindings/zmk/keys.h> + +/ { + chosen { + zmk,keymap = &keymap0; + }; + keymap0: keymap { + compatible = "zmk,keymap"; + label ="Default keymap"; + layers = <&default &lower &raise>; + }; + + layers { + compatible = "zmk,layers"; + + default: layer_0 { + label = "Default"; + keys = + < + KC_A KC_B + KC_C ZC_CSTM(1) + >; + }; + + lower: layer_1 { + label = "Lower"; + keys = <KC_D KC_C KC_B KC_A>; + }; + + raise: layer_2 { + label = "Raise"; + keys = <KC_C KC_D KC_A KC_B>; + }; + }; +}; diff --git a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay index fd55b28..72e24a0 100644 --- a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay +++ b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay @@ -1,41 +1,9 @@ -#include <dt-bindings/zmk/keys.h> / { chosen { - zmk,keymap = &keymap0; zmk,kscan = &kscan0; }; - layers { - compatible = "zmk,layers"; - - default: layer_0 { - label = "Default"; - keys = - < - KC_A KC_B - KC_C ZC_CSTM(1) - >; - }; - - lower: layer_1 { - label = "Lower"; - keys = <KC_D KC_C KC_B KC_A>; - }; - - raise: layer_2 { - label = "Raise"; - keys = <KC_C KC_D KC_A KC_B>; - }; - }; - - keymap0: keymap { - compatible = "zmk,keymap"; - - label ="Default keymap"; - layers = <&default &lower &raise>; - }; - kscan0: kscan { compatible = "gpio-kscan"; label = "KSCAN"; |