Skip to content

Commit

Permalink
feat: enable layout switching
Browse files Browse the repository at this point in the history
  • Loading branch information
minusfive committed Oct 8, 2024
1 parent 9a707c9 commit 685b8f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/corneish_zen.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Alpha layer: uncomment desired, comment the others
#include "../knucklehead/L1_colemak-dh.dtsi"
// #include "../knucklehead/L1_colemak.dtsi"
// #include "../knucklehead/L1_qwerty.dtsi"
#include "../knucklehead/L1_qwerty.dtsi"

// Other layers
#include "../knucklehead/L2.dtsi"
Expand Down
4 changes: 2 additions & 2 deletions knucklehead/L1_colemak-dh.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
keymap {
compatible = "zmk,keymap";

layer_1 {
display-name = "L1";
colemak_dh {
display-name = "CLMK-DH";
bindings = <
// ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮
// │0 │1 │2 │3 │4 │5 │ │6 │7 │8 │9 │10 │11 │
Expand Down
8 changes: 4 additions & 4 deletions knucklehead/L1_qwerty.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
keymap {
compatible = "zmk,keymap";

layer_1 {
display-name = "L1";
qwerty {
display-name = "QWERTY";
bindings = <
// ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮
// │0 │1 │2 │3 │4 │5 │ │6 │7 │8 │9 │10 │11 │
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp K_CANCEL
// ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤
// │12 │13 │14 │15 │16 │17 │ │18 │19 │20 │21 │22 │23 │
&bkspc_del &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT &kp ENTER
&bkspc_del &kp A &hrml LCTRL S &hrml LALT D &hrml LCMD F &hrml MEH G &hrmr MEH H &hrmr LCMD J &hrmr LALT K &hrmr LCTRL L &kp SQT &kp ENTER
// ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤
// │24 │25 │26 │27 │28 │29 │ │30 │31 │32 │33 │34 │35 │
&csl Fn &mt LCTRL Z &mt LALT X &mt LCMD C &mt MEH V &kp B &kp N &mt MEH M &mt RCMD COMMA &mt RALT DOT &mt RCTRL SLASH &csl Fn
&csl Fn &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH &csl Fn
// ╰───────────────┴───────────────┴───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┴───────────────┴───────────────╯
// │36 │37 │38 │ │39 │40 │41 │
&kp TAB &mt LSHFT SPACE &smart_num L2 0 &smart_num L2 0 &smart_shift &kp GRAVE
Expand Down
2 changes: 1 addition & 1 deletion knucklehead/L3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
bindings = <
// ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮
// │0 │1 │2 │3 │4 │5 │ │6 │7 │8 │9 │10 │11 │
&out OUT_TOG &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &trans &trans &trans &trans &trans &kp C_POWER
&out OUT_TOG &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &trans &tog QWERTY &trans &trans &trans &kp C_POWER
// ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤
// │12 │13 │14 │15 │16 │17 │ │18 │19 │20 │21 │22 │23 │
&sys_reset &kp F6 &hrml LCTRL F7 &hrml LALT F8 &hrml LCMD F9 &hrml MEH F10 &trans &trans &trans &trans &trans &sys_reset
Expand Down

0 comments on commit 685b8f9

Please sign in to comment.