Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
dynamic macro
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbj committed Nov 16, 2023
1 parent be835cc commit 805d2e2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions config/keymap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/dynamic-macros.h>

#define DFT 0
#define NUM 1
Expand Down Expand Up @@ -147,6 +148,13 @@
MACRO( col_eq, <&macro_tap &kp COLON &kp EQUAL>)
MACRO(excl_eq, <&macro_tap &kp EXCL &kp EQUAL>)
MACRO( eq_eq, <&macro_tap &kp EQUAL &kp EQUAL>)

dm: dm {
label = "dm";
compatible = "zmk,behavior-dynamic-macro";
#binding-cells = <1>;
wait-ms = <5>;
};
};
keymap {
compatible = "zmk,keymap";
Expand Down Expand Up @@ -199,10 +207,10 @@ ___ &bootloader &sys_reset &ext_power EP_ON &ext_power EP_TOG &ext_p
fun {
label = "fun";
bindings = <
___ &kp F9 &kp F10 &kp F11 &kp F12 ___ ___ ___ ___ ___ ___ ___
___ &kp F5 &kp F6 &kp F7 &kp F8 ___ ___ &sk LGUI &sk LALT &sk LCTRL &sk LSHFT ___
___ &kp F1 &kp F2 &kp F3 &kp F4 ___ ___ ___ ___ ___ ___ ___
___ ___ ___ ___ ___ ___
___ &kp F9 &kp F10 &kp F11 &kp F12 &dm RECORD ___ ___ ___ ___ ___ ___
___ &kp F5 &kp F6 &kp F7 &kp F8 &dm PLAY ___ &sk LGUI &sk LALT &sk LCTRL &sk LSHFT ___
___ &kp F1 &kp F2 &kp F3 &kp F4 ___ ___ ___ ___ ___ ___ ___
___ ___ ___ ___ ___ ___
>;
};
accents {
Expand Down

0 comments on commit 805d2e2

Please sign in to comment.