Skip to content

Commit f60c110

Browse files
committed
Change default shield layout to match the default Kinesis layout
1 parent 11453cd commit f60c110

File tree

1 file changed

+45
-43
lines changed

1 file changed

+45
-43
lines changed

config/boards/shields/dactyl_cc/dactyl_cc.keymap

+45-43
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
#include <dt-bindings/zmk/outputs.h>
55

66
#define DEFAULT 0
7-
#define MAC 1
8-
#define LOWER 2
9-
#define RAISE 3
10-
#define ADJUST 4
7+
#define LOWER 1
8+
#define RAISE 2
9+
#define ADJUST 3
1110

1211
#define HYPER(key) LS(LC(LA(LG(key))))
1312
#define MEH(key) LS(LC(LA(key)))
@@ -26,44 +25,45 @@
2625
keymap {
2726
compatible = "zmk,keymap";
2827

28+
// Default layer. Modeled after the original Kinesis layout with a few tweaks.
29+
// Equals above tab = ESC
30+
// Backslash below minus = Equals
31+
// Swapped up and down arrows
2932
default_layer {
3033
bindings = <
31-
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &tog RAISE
32-
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH
33-
&mo LOWER &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
34-
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
35-
&kp GRAVE &kp BSLH &kp LEFT &kp RIGHT &kp DOWN &kp UP &kp LBKT &kp RBKT
36-
&kp EQUAL &kp MINUS &kp LBKT &kp RBKT
37-
&kp GRAVE &kp BSPC
38-
&kp LCTRL &kp LALT &kp LGUI &kp DEL &kp RET &kp SPACE
39-
>;
40-
};
41-
42-
mac_layer {
43-
bindings = <
44-
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
45-
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
46-
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
47-
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
48-
&trans &trans &trans &trans &trans &trans &trans &trans
49-
&trans &trans &trans &trans
50-
&trans &trans
51-
&kp LGUI &kp LALT &kp LCTRL &trans &trans &trans
34+
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS
35+
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp EQUAL
36+
&lt LOWER CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
37+
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
38+
&kp GRAVE &kp BSLH &kp LEFT &kp RIGHT &kp DOWN &kp UP &kp LBKT &kp RBKT
39+
&kp LCTRL &kp LALT &kp RGUI &kp RCTRL
40+
&kp HOME &kp PG_UP
41+
&kp BSPC &kp DEL &kp END &kp PG_DN &kp RET &kp SPACE
5242
>;
5343
};
5444

45+
// Lower layer.
46+
// - Turns number row into function keys.
47+
// - Media keys to the bottom row.
48+
// - vim style arrow keys.
49+
// - Tab navigation above the vim keys.
50+
// - Desktop navigation below the vim keys.
51+
// Momentarily toggled with LOWER (Caps Lock).
5552
lower_layer {
5653
bindings = <
57-
&kp F12 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
58-
&sl ADJUST &none &none &none &none &none &none &kp LC(1) &kp LC(PG_UP) &kp LC(PG_DN) &kp LC(9) &none
59-
&trans &kp CAPS &none &none &none &none &kp LEFT &kp DOWN &kp UP &kp RIGHT &none &none
60-
&trans &none &none &none &none &none &kp MEH(N) &kp MEH(M) &kp LG(LC(LEFT)) &kp LG(LC(RIGHT)) &kp LG(TAB) &trans
61-
&none &kp C_PP &kp C_PREV &kp C_NEXT &kp C_VOL_DN &kp C_VOL_UP &kp C_MUTE &none
62-
&kp C_BRI_UP &kp C_BRI_DN &kp PSCRN &kp INS
63-
&kp HOME &kp PG_UP
64-
&trans &trans &kp END &kp PG_DN &trans &trans
54+
&kp F12 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
55+
&sl ADJUST &none &none &none &none &none &none &kp LC(1) &kp LC(PG_UP) &kp LC(PG_DN) &kp LC(9) &none
56+
&trans &none &none &none &none &none &kp LEFT &kp DOWN &kp UP &kp RIGHT &none &none
57+
&trans &none &none &none &none &none &kp none &kp none &kp LG(LC(LEFT)) &kp LG(LC(RIGHT)) &kp LG(TAB) &trans
58+
&none &kp C_PP &kp C_PREV &kp C_NEXT &kp C_VOL_UP &kp C_VOL_DN &kp C_MUTE &none
59+
&kp C_BRI_UP &kp C_BRI_DN &kp PSCRN &kp INS
60+
&trans &trans
61+
&trans &trans &trans &trans &trans &trans
6562
>; };
6663

64+
// Gaming overlay. Shifts the columns to the right by one putting wasd where your fingers naturally rest.
65+
// Also remaps some keys to the left hand for convenience.
66+
// Toggled with LOWER (Caps) + ADJUST (Tab) -> RAISE (G)
6767
raise_layer {
6868
bindings = <
6969
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
@@ -72,21 +72,23 @@
7272
&kp M &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
7373
&kp COMMA &kp DOT &trans &trans &trans &trans &trans &trans
7474
&trans &trans &trans &trans
75-
&kp BSLH &trans
76-
&kp SPACE &kp LCTRL &kp LALT &trans &trans &trans
75+
&kp BSLH &trans
76+
&kp SPACE &kp LCTRL &kp LALT &trans &trans &trans
7777
>;
7878
};
7979

80+
// Adjust layer. Contains system controls and overlay toggles.
81+
// Toggled with LOWER (Caps) + ADJUST (Tab)
8082
adjust_layer {
8183
bindings = <
82-
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
83-
&trans &out OUT_USB &out OUT_BLE &none &sys_reset &tog MAC &none &sys_reset &none &none &none &none
84-
&trans &none &none &none &none &none &none &none &none &none &none &none
85-
&none &none &bt BT_CLR &none &none &bootloader &bootloader &none &none &none &none &none
86-
&none &none &none &none &none &none &none &none
87-
&none &none &none &none
88-
&none &none
89-
&none &none &none &none &none &none
84+
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
85+
&trans &out OUT_USB &out OUT_BLE &none &sys_reset &none &none &sys_reset &none &none &none &none
86+
&trans &none &none &none &none &tog RAISE &none &none &none &none &none &none
87+
&none &none &bt BT_CLR &none &none &bootloader &bootloader &none &none &none &none &none
88+
&none &none &none &none &none &none &none &none
89+
&none &none &none &none
90+
&none &none
91+
&none &none &none &none &none &none
9092
>;
9193
};
9294
};

0 commit comments

Comments
 (0)