|
1 | 1 | #include <behaviors/mouse_keys.dtsi> |
2 | 2 | #include <dt-bindings/zmk/mouse.h> |
3 | 3 | #include <behaviors.dtsi> |
4 | | -#include <dt-bindings/zmk/backlight.h> |
5 | | -#include <dt-bindings/zmk/bt.h> |
6 | 4 | #include <dt-bindings/zmk/keys.h> |
7 | | -#include <dt-bindings/zmk/outputs.h> |
8 | | -#include <dt-bindings/zmk/pointing.h> |
9 | | -#include <dt-bindings/zmk/pointing.h> |
10 | | -#include <dt-bindings/zmk/rgb.h> |
11 | 5 |
|
12 | 6 | #define ZMK_MOUSE_DEFAULT_MOVE_VAL 1200 // 600 |
13 | 7 | #define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10 |
|
33 | 27 | }; |
34 | 28 | }; |
35 | 29 |
|
36 | | - combos { |
37 | | - compatible = "zmk,combos"; |
38 | | - |
39 | | - fn_layer_sticky { |
40 | | - bindings = <&sl 1>; |
41 | | - key-positions = <0 53>; |
42 | | - }; |
43 | | - |
44 | | - bluetooth_layer_toggle { |
45 | | - bindings = <&tog 2>; |
46 | | - key-positions = <2 53>; |
47 | | - }; |
48 | | - |
49 | | - dictation { |
50 | | - bindings = <&kp F14>; |
51 | | - key-positions = <53 43>; |
52 | | - }; |
53 | | - }; |
54 | | - |
55 | | - macros { |
56 | | - hyper: hyper { |
57 | | - compatible = "zmk,behavior-macro"; |
58 | | - #binding-cells = <0>; |
59 | | - bindings = <&sk LGUI &sk LEFT_SHIFT &sk LALT &sk LCTRL>; |
60 | | - label = "HYPER"; |
61 | | - }; |
62 | | - }; |
| 30 | + combos { compatible = "zmk,combos"; }; |
63 | 31 |
|
64 | 32 | keymap { |
65 | 33 | compatible = "zmk,keymap"; |
|
76 | 44 | sensor-bindings = <&inc_dec_kp C_BRIGHTNESS_INC C_BRIGHTNESS_DEC>; |
77 | 45 | display-name = "LAYER0"; |
78 | 46 | }; |
79 | | - |
80 | | - layer_1 { |
81 | | - bindings = < |
82 | | -&to 0 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &mmv MOVE_UP &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 |
83 | | -&trans &kp GRAVE &mkp LCLK &mkp MCLK &mkp RCLK &mkp MB4 &mmv MOVE_DOWN &kp PG_UP &kp END &kp UP &kp HOME &kp MINUS &kp F12 |
84 | | -&trans &kp TILDE &trans &trans &trans &mkp MB5 &mmv MOVE_LEFT &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp LEFT_BRACKET &kp RIGHT_BRACKET |
85 | | -&trans &rgb_ug RGB_OFF &rgb_ug RGB_ON &rgb_ug RGB_EFF &rgb_ug RGB_EFR &rgb_ug RGB_SPI &mmv MOVE_RIGHT &rgb_ug RGB_BRI &rgb_ug RGB_BRD &kp INSERT &kp F11 &kp F12 &trans |
86 | | -&kp C_MUTE &trans &trans &trans &trans &trans &mkp LCLK &trans &trans &trans &trans &trans |
87 | | - >; |
88 | | - |
89 | | - display-name = "layer1"; |
90 | | - sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>; |
91 | | - }; |
92 | | - |
93 | | - layer_2 { |
94 | | - bindings = < |
95 | | -&to 0 &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &mmv MOVE_UP &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans |
96 | | -&studio_unlock &none &bt BT_CLR &trans &trans &trans &mmv MOVE_DOWN &trans &trans &kp F11 &kp F12 &kp UNDER &kp PLUS |
97 | | -&trans &out OUT_USB &out OUT_BLE &trans &bl BL_DEC &bl BL_INC &mmv MOVE_LEFT &trans &trans &trans &trans &kp LBRC &kp RBRC |
98 | | -&trans &sys_reset &trans &bootloader &trans &trans &mmv MOVE_RIGHT &trans &trans &sys_reset &soft_off &bootloader &trans |
99 | | -&bl BL_TOG &trans &trans &trans &trans &bt BT_CLR_ALL &mkp LCLK &trans &trans &trans &trans &trans |
100 | | - >; |
101 | | - }; |
102 | 47 | }; |
103 | 48 | }; |
0 commit comments