Skip to content

Commit

Permalink
fix: sensor code
Browse files Browse the repository at this point in the history
  • Loading branch information
titus-ong committed Aug 9, 2023
1 parent 4eed7c7 commit c285d7e
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions config/sofle.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,6 @@ ZMK_BEHAVIOR(angled, mod_morph,
};
};

sensors {
compatible = "zmk,keymap-sensors";
sensors = <&my_left_encoder &my_right_encoder>;
triggers-per-rotation = <20>;
};

keymap {
compatible = "zmk,keymap";

Expand All @@ -277,6 +271,12 @@ ZMK_BEHAVIOR(angled, mod_morph,
&none &kp LCTRL NAV_RPT_LALT BK_GUI DEL_NUM RET_NAV SPC_GUI RPT_RALT &kp RCTRL &none
// ╰──────────┴──────────┴─────────────┴──────────┴──────────╯ ╰───────────┴──────────┴──────────┴──────────┴──────────╯
>;

sensors {
compatible = "zmk,keymap-sensors";
sensors = <&my_left_encoder &my_right_encoder>;
triggers-per-rotation = <20>;
};
};

win {
Expand All @@ -298,6 +298,12 @@ ZMK_BEHAVIOR(angled, mod_morph,
&trans &kp LGUI &trans BK_CTRL &trans &trans SPC_CTRL &trans &kp RGUI &trans
// ╰─────────────┴─────────────┴─────────────┴─────────────┴──────────╯ ╰──────────┴──────────┴────────────┴────────────┴──────────╯
>;

sensors {
compatible = "zmk,keymap-sensors";
sensors = <&my_left_encoder &my_right_encoder>;
triggers-per-rotation = <20>;
};
};

nav {
Expand All @@ -319,6 +325,12 @@ ZMK_BEHAVIOR(angled, mod_morph,
&none &trans &trans &trans &kp LSHFT &trans &trans &trans &trans &trans
// ╰───────────┴───────────┴───────────┴───────────┴───────────╯ ╰───────────┴───────────┴────────────┴───────────┴───────────╯
>;

sensors {
compatible = "zmk,keymap-sensors";
sensors = <&my_left_encoder &my_right_encoder>;
triggers-per-rotation = <20>;
};
};

num {
Expand All @@ -340,6 +352,12 @@ ZMK_BEHAVIOR(angled, mod_morph,
&none &kp SPACE &kp DOT &trans &kp DEL &kp RSHFT &trans &trans &trans &trans
// ╰───────────┴────────────┴────────────┴──────────┴──────────╯ ╰──────────┴──────────┴──────────┴───────────┴──────────╯
>;

sensors {
compatible = "zmk,keymap-sensors";
sensors = <&my_left_encoder &my_right_encoder>;
triggers-per-rotation = <20>;
};
};

cfg {
Expand All @@ -361,6 +379,12 @@ ZMK_BEHAVIOR(angled, mod_morph,
&none &sys_reset &bootloader &none &none &none &none &bootloader &sys_reset &none
// ╰─────────────┴─────────────┴─────────────┴─────────────┴──────────╯ ╰──────────┴──────────┴────────────┴────────────┴──────────╯
>;

sensors {
compatible = "zmk,keymap-sensors";
sensors = <&my_left_encoder &my_right_encoder>;
triggers-per-rotation = <20>;
};
};
};
};

0 comments on commit c285d7e

Please sign in to comment.