Skip to content

Commit

Permalink
update keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
tokyo2006 committed Jun 1, 2024
1 parent 4682b74 commit ee92249
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 10 deletions.
4 changes: 2 additions & 2 deletions config/boards/shields/zazu/zazu.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9)
trackball_peripheral_scroll_listener {
compatible = "zmk,input-behavior-listener";
device = <&pd0>;
layers = <2>;
layers = <1 2 3 4>;
evt-type = <INPUT_EV_REL>;
/* slienting x-axis with alt event code */
x-input-code = <INPUT_REL_HWHEEL>;
Expand All @@ -208,7 +208,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9)
trackball_peripheral_snipe_listener {
compatible = "zmk,input-behavior-listener";
device = <&pd0>;
layers = <3>;
layers = <6>;
evt-type = <INPUT_EV_REL>;
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
Expand Down
82 changes: 74 additions & 8 deletions config/zazu.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* SPDX-License-Identifier: MIT
*/

#include <dt-bindings/zmk/mouse.h>
#include <behaviors.dtsi>
#include <behaviors/mouse_keys.dtsi>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/mouse.h>

/ {
combos {
compatible = "zmk,combos";
Expand Down Expand Up @@ -141,14 +141,80 @@

Qwery {
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp CAPSLOCK &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp ENTER
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp RSHFT &kp BSPC &kp TAB
&kp SPACE &kp N1 &kp N2 &kp N3 &kp SPACE &kp ENTER &kp DELETE &kp UP_ARROW &kp LEFT_ARROW &kp DOWN_ARROW &kp KP_ENTER &kp RIGHT_ARROW
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp CAPSLOCK &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp ENTER
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp RSHFT &ltq 1 BACKSPACE &ltq 3 TAB
&ltq 2 SPACE &mkp LCLK &mkp MCLK &mkp RCLK &ltq 2 SPACE &ltq 3 ENTER &ltq 6 DELETE &kp UP_ARROW &kp LEFT_ARROW &kp DOWN_ARROW &kp KP_ENTER &kp RIGHT_ARROW
>;

sensor-bindings = <&inc_dec_kp C_VOLUME_UP K_VOLUME_DOWN>;
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
label = "Qwery";
};

Navi {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;

label = "Navi";
};

Symbol {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;

label = "Symbol";
};

Modify {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;

label = "Modify";
};

Flash {
bindings = <
&dongle_bootload_macro &trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans
&bt BT_CLR &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&bt BT_CLR_ALL &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;

label = "Flash";
};

Mouse {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;

label = "Mouse";
};

Sniper {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;

label = "Sniper";
};
};
};

0 comments on commit ee92249

Please sign in to comment.