diff options
author | Peter Johanson <peter@peterjohanson.com> | 2021-06-09 06:10:20 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-11-28 22:41:35 -0500 |
commit | 54dabffd0d371595a8142ee4da4f5d888a310cda (patch) | |
tree | bcbdc884b7de743d9804d51ec9355b22c6cff50d /app/tests/caps-word/behavior_keymap.dtsi | |
parent | 30ed2375335acf47da0216c6832ecfd30ea7097c (diff) |
feat(behaviors): Add caps word (`&caps_word`).
* Add new `&caps_word` behavior that acts like caps lock, but
releases automatically when any "break" keycode is pressed.
Diffstat (limited to 'app/tests/caps-word/behavior_keymap.dtsi')
-rw-r--r-- | app/tests/caps-word/behavior_keymap.dtsi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/tests/caps-word/behavior_keymap.dtsi b/app/tests/caps-word/behavior_keymap.dtsi new file mode 100644 index 0000000..04653be --- /dev/null +++ b/app/tests/caps-word/behavior_keymap.dtsi @@ -0,0 +1,17 @@ +#include <dt-bindings/zmk/keys.h> +#include <behaviors.dtsi> +#include <dt-bindings/zmk/kscan_mock.h> + +/ { + keymap { + compatible = "zmk,keymap"; + label = "Default keymap"; + + default_layer { + bindings = < + &caps_word &kp A + &kp N6 &kp MINUS + >; + }; + }; +}; |