Created
May 5, 2026 20:40
-
-
Save hunner/9ecf02e9955ac460f42748648cc255f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <behaviors.dtsi> | |
| #include <dt-bindings/zmk/keys.h> | |
| #include <zmk-helpers/helper.h> | |
| /* | |
| ╭─────────────────╮ ╭─────────────────╮ ╭─────────────────╮ ╭─────────────────╮ | |
| │ 0 1 2 3 │ │ 4 5 6 7 │ │ LT4 LT3 LT2 LT1 │ │ RT1 RT2 RT3 RT4 │ | |
| │ 8 9 10 11 │ │ 12 13 14 15 │ │ LM4 LM3 LM2 LM1 │ │ RM1 RM2 RM3 RM4 │ | |
| ╰───╮ 16 17 ╭────╯ ╰────╮ 18 19 ╭───╯ ╰───╮ LH1 LH0 ╭───╯ ╰───╮ RH0 RH1 ╭───╯ | |
| ╰────────╯ ╰────────╯ ╰─────────╯ ╰─────────╯ */ | |
| // Left hand top row (pinky to index) | |
| #define LT4 0 | |
| #define LT3 1 | |
| #define LT2 2 | |
| #define LT1 3 | |
| // Right hand top row (index to pinky) | |
| #define RT1 4 | |
| #define RT2 5 | |
| #define RT3 6 | |
| #define RT4 7 | |
| // Left hand middle row (pinky to index) | |
| #define LM4 8 | |
| #define LM3 9 | |
| #define LM2 10 | |
| #define LM1 11 | |
| // Right hand middle row (index to pinky) | |
| #define RM1 12 | |
| #define RM2 13 | |
| #define RM3 14 | |
| #define RM4 15 | |
| // Thumbs: inner then outer for left, outer then inner for right | |
| #define LH1 16 // left inner thumb (GP11) | |
| #define LH0 17 // left outer thumb (GP10) | |
| #define RH0 18 // right outer thumb (GP9) | |
| #define RH1 19 // right inner thumb (GP8) | |
| ZMK_LAYER(default, | |
| // ╭─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────╮ | |
| &kp A &kp B &kp C &kp D &kp E &kp F &kp G &kp H | |
| // ├─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┤ | |
| &kp I &kp J &kp K &kp L &kp M &kp N &kp O &kp P | |
| // ╰─────────────┼─────────────┼─────────────┼─────────────╯ ╰─────────────┼─────────────┼─────────────┼─────────────╯ | |
| &kp Q &kp R &kp S &kp T | |
| // ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯ | |
| ) | |
| /* vim: set tw=180 ft=c: */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment