2020-09-22 15:29:54 +10:00
|
|
|
/*
|
2020-09-24 09:21:42 +10:00
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
2020-09-22 15:29:54 +10:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <behaviors.dtsi>
|
2020-09-24 09:31:02 +10:00
|
|
|
#include <dt-bindings/zmk/bt.h>
|
2020-09-22 15:29:54 +10:00
|
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
|
|
default_layer {
|
2020-09-24 09:37:46 +10:00
|
|
|
// --------------------------
|
|
|
|
// | 7 | 8 | 9 |
|
|
|
|
// | 4 | 5 | 6 |
|
|
|
|
// | 1 | 2 | 3 |
|
|
|
|
// | M_PLAY | 0 | MO(1) |
|
|
|
|
// --------------------------
|
2020-09-22 15:29:54 +10:00
|
|
|
bindings = <
|
|
|
|
&kp NUM_7 &kp NUM_8 &kp NUM_9
|
|
|
|
&kp NUM_4 &kp NUM_5 &kp NUM_6
|
|
|
|
&kp NUM_1 &kp NUM_2 &kp NUM_3
|
2020-11-05 08:56:22 +11:00
|
|
|
&kp M_PLAY &kp NUM_0 &mo 1
|
2020-09-22 15:29:54 +10:00
|
|
|
>;
|
|
|
|
|
2020-11-05 08:56:22 +11:00
|
|
|
sensor-bindings = <&inc_dec_kp M_NEXT M_PREV>;
|
2020-09-22 15:29:54 +10:00
|
|
|
};
|
|
|
|
|
2020-09-24 09:37:46 +10:00
|
|
|
nav_layer {
|
|
|
|
// --------------------------
|
|
|
|
// | BT_CLR | HOME | PGUP |
|
|
|
|
// | _ | END | PGDN |
|
|
|
|
// | _ | _ | _ |
|
|
|
|
// | _ | _ | _ |
|
|
|
|
// --------------------------
|
|
|
|
bindings = <
|
|
|
|
&bt BT_CLR &kp HOME &kp PGUP
|
|
|
|
&trans &kp END &kp PGDN
|
|
|
|
&trans &trans &trans
|
|
|
|
&trans &trans &trans
|
|
|
|
>;
|
2020-09-22 15:29:54 +10:00
|
|
|
|
2020-09-24 09:37:46 +10:00
|
|
|
sensor-bindings = <&inc_dec_kp A B>;
|
|
|
|
};
|
2020-09-22 15:29:54 +10:00
|
|
|
};
|
|
|
|
};
|