vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

dts_zmk.keymap (365B)


      1 #include <behaviors.dtsi>
      2 #include <dt-bindings/zmk/keys.h>
      3 
      4 // Define macro for layers.
      5 #define LAYER_MAIN 0
      6 
      7 / {
      8 	keymap {
      9 		compatible = "zmk,keymap";
     10 
     11 		layer_0 {
     12 			bindings = <
     13 				&kp Z
     14 				&kp M
     15 				&kp K
     16 				&zmk_string
     17 				&to LAYER_MAIN
     18 			>;
     19 		};
     20 	};
     21 
     22 	ZMK_MACRO(zmk_string, wait-ms = <10>; tap-ms = <10>; bindings = <&macro_tap &kp Z &kp M &kp K>;)
     23 };