Skip to content

Commit

Permalink
Update am_hatsu.keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
rain2813 authored Mar 10, 2024
1 parent 60ef28a commit 12791f7
Showing 1 changed file with 47 additions and 10 deletions.
57 changes: 47 additions & 10 deletions config/am_hatsu.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,53 @@
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/ext_power.h>

ZMK_MACRO(layer_color_macro,
wait-ms = <0>;
tap-ms = <0>;
bindings
= <&macro_press &mo 1>
, <&macro_tap &rgb_ug RGB_COLOR_HSB(128,100,100)>
, <&macro_pause_for_release>
, <&macro_release &mo 1>
, <&macro_tap &rgb_ug RGB_COLOR_HSB(300,100,50)>;
)

/ {

layer_a: layer_a {
label = "layer a";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
wait-ms = <0>;
tap-ms = <0>;
bindings
= <&macro_press &mo 1>
, <&macro_tap &rgb_ug RGB_COLOR_HSB(300,100,4)>
, <&macro_pause_for_release>
, <&macro_release &mo 1>
, <&macro_tap &rgb_ug RGB_COLOR_HSB(240,0,1)>
;
};

layer_b: layer_b {
label = "layer b";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
wait-ms = <0>;
tap-ms = <0>;
bindings
= <&macro_press &mo 2>
, <&macro_tap &rgb_ug RGB_COLOR_HSB(175,100,4)>
, <&macro_pause_for_release>
, <&macro_release &mo 2>
, <&macro_tap &rgb_ug RGB_COLOR_HSB(240,0,1)>
;
};

layer_c: layer_c {
label = "layer c";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
wait-ms = <0>;
tap-ms = <0>;
bindings
= <&macro_press &sl 3>
, <&macro_tap &rgb_ug RGB_COLOR_HSB(0,100,4)>
, <&macro_pause_for_release>
, <&macro_release &sl 3>
;
};
};

#define DEFAULT 0
#define NUMBER 1
Expand Down

0 comments on commit 12791f7

Please sign in to comment.