Skip to content

Commit

Permalink
add setup for nickcoutsos/keymap-editor GUI (#1)
Browse files Browse the repository at this point in the history
* Create chaz

add main keymap file (from board folder)

* Rename chaz to chaz.keymap

file extension derp

* add chaz.json with default layout

* fix cols

---------

Co-authored-by: zackforbing <[email protected]>
  • Loading branch information
zackforbing and zackforbing authored Aug 11, 2023
1 parent cf6e957 commit 0187a83
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
52 changes: 52 additions & 0 deletions config/chaz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"id": "chaz",
"name": "chaz",
"layouts": {
"default_layout": {
"name": "default_layout",
"layout": [
{ "row": 1, "col": 0, "x": 0, "y": 1 },
{ "row": 1, "col": 1, "x": 1, "y": 1 },
{ "row": 1, "col": 2, "x": 2, "y": 1 },
{ "row": 1, "col": 3, "x": 3, "y": 1 },
{ "row": 1, "col": 4, "x": 4, "y": 1 },
{ "row": 1, "col": 5, "x": 5, "y": 1 },
{ "row": 1, "col": 6, "x": 6, "y": 1 },
{ "row": 1, "col": 7, "x": 7, "y": 1 },
{ "row": 1, "col": 8, "x": 8, "y": 1 },
{ "row": 1, "col": 9, "x": 9, "y": 1, "w": 1.25 },

{ "row": 2, "col": 0, "x": 0, "y": 2, "w": 1.25 },
{ "row": 2, "col": 1, "x": 1.25, "y": 2 },
{ "row": 2, "col": 2, "x": 2.25, "y": 2 },
{ "row": 2, "col": 3, "x": 3.25, "y": 2 },
{ "row": 2, "col": 4, "x": 4.25, "y": 2 },
{ "row": 2, "col": 5, "x": 5.25, "y": 2 },
{ "row": 2, "col": 6, "x": 6.25, "y": 2 },
{ "row": 2, "col": 7, "x": 7.25, "y": 2 },
{ "row": 2, "col": 8, "x": 8.25, "y": 2 },
{ "row": 2, "col": 9, "x": 9.25, "y": 2 },

{ "row": 3, "col": 0, "x": 0, "y": 3, "w": 1.75 },
{ "row": 3, "col": 1, "x": 1.75, "y": 3 },
{ "row": 3, "col": 2, "x": 2.75, "y": 3 },
{ "row": 3, "col": 3, "x": 3.75, "y": 3 },
{ "row": 3, "col": 4, "x": 4.75, "y": 3 },
{ "row": 3, "col": 5, "x": 5.75, "y": 3 },
{ "row": 3, "col": 6, "x": 6.75, "y": 3 },
{ "row": 3, "col": 7, "x": 7.75, "y": 3 },
{ "row": 3, "col": 8, "x": 8.75, "y": 3, "w": 1.5 },

{ "row": 4, "col": 0, "x": 0, "y": 4 },
{ "row": 4, "col": 1, "x": 1, "y": 4 },
{ "row": 4, "col": 2, "x": 2, "y": 4 },
{ "row": 4, "col": 3, "x": 3, "y": 4, "w": 2.25 },
{ "row": 4, "col": 4, "x": 5.25, "y": 4, "w": 2 },
{ "row": 4, "col": 5, "x": 7.25, "y": 4 },
{ "row": 4, "col": 6, "x": 8.25, "y": 4 },
{ "row": 4, "col": 7, "x": 9.25, "y": 4 }
]
}
},
"sensors": []
}
63 changes: 63 additions & 0 deletions config/chaz.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* Copyright (c) 2023 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

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

#define GAMES 0
#define NUMBERS 1
#define CONFIG 2
#define ALPHA 3

&mt {
flavor = "tap-preferred";
tapping_term_ms = <180>;
};

&lt {
tapping_term_ms = <150>;
};

/ {
keymap {
compatible = "zmk,keymap";

GAMES_layer {
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp N1 &kp N5 &kp BSPC
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp N2 &kp N6 &tog 2
&kp LSHIFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp N3 &kp RET
&kp LCTRL &kp GRAVE &mo 1 &kp SPACE &kp SPACE &kp N4 &kp N8 &tog 3
>;
};
NUMBERS_layer {
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
&none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none
>;
};
CONFIG_layer {
bindings = <
&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 &none &none &none &none &none &none &none &none &tog 2
&none &none &none &none &none &none &none &none &none
&bt BT_CLR &out OUT_BLE &out OUT_USB &none &none &none &none &none
>;
};
ALPHA_layer {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT
&kp ESC &kp LCTRL &mo 1 &kp LSHIFT &kp SPACE &kp BSPC &kp RET &tog 3
>;
};
};
};

0 comments on commit 0187a83

Please sign in to comment.