From 69ea35b41050ec02c3290255664dcc6cdc78a02a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Tue, 5 Jan 2021 08:18:21 +0000 Subject: [PATCH] Add makerdiary m60 setup, keymap, notes --- keyboards/zmk-config/README.md | 4 ++- keyboards/zmk-config/config/m60.conf | 0 keyboards/zmk-config/config/m60.keymap | 35 ++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 keyboards/zmk-config/config/m60.conf create mode 100644 keyboards/zmk-config/config/m60.keymap diff --git a/keyboards/zmk-config/README.md b/keyboards/zmk-config/README.md index eb073403..a16169d0 100644 --- a/keyboards/zmk-config/README.md +++ b/keyboards/zmk-config/README.md @@ -8,7 +8,7 @@ Need to have the `zmk-config` directory mounted at `/workspaces/zmk-config` in D ``` sh -west build --board nrf52840_mdk_dongle -d build/mdk_dongle -- -DSHIELD=mdk_dongle -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config +west build --board nice_nano -d build/m60 -- -DSHIELD=m60 -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config west build --board nice_nano -d build/tidbit -- -DSHIELD=tidbit -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config @@ -24,6 +24,8 @@ west build --board nice_nano -d build/lily58/left -- -DSHIELD=lily58_left -DZMK_ west build --board nice_nano -d build/lily58/right -- -DSHIELD=lily58_right -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config +west build --board nrf52840_mdk_dongle -d build/mdk_dongle -- -DSHIELD=mdk_dongle -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config + west build --board itsybitsy_nrf52840 -d build/azarashi64/left -- -DSHIELD=azarashi64_left -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config west build --board itsybitsy_nrf52840 -d build/azarashi64/right -- -DSHIELD=azarashi64_right -DZMK_CONFIG=/workspaces/zmk-config/keyboards/zmk-config/config diff --git a/keyboards/zmk-config/config/m60.conf b/keyboards/zmk-config/config/m60.conf new file mode 100644 index 00000000..e69de29b diff --git a/keyboards/zmk-config/config/m60.keymap b/keyboards/zmk-config/config/m60.keymap new file mode 100644 index 00000000..3ab819f3 --- /dev/null +++ b/keyboards/zmk-config/config/m60.keymap @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#include +#include +#include + +/ { + keymap0: keymap { + compatible = "zmk,keymap"; + + default_layer { + bindings = < + &kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS &kp EQUAL &kp BSPC + &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT &kp RBKT &kp BSLH + &none &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT &kp RET + &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT + &kp LCTRL &kp LGUI &kp LALT &kp SPACE &kp RALT &mo 1 &kp RGUI &kp RCTRL + >; + }; + + function_layer { + bindings = < +&kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp DEL +&kp CLCK &trans &kp PG_UP &kp UP &kp PG_DN &trans &trans &trans &trans &trans &trans &trans &trans &kp INSERT +&trans &kp HOME &kp LEFT &kp DOWN &kp RIGHT &kp END &trans &trans &trans &trans &trans &trans &kp PSCRN +&trans &trans &trans &trans &trans &trans &trans &trans &trans &bootloader &reset &kp C_PLAY_PAUSE +&trans &trans &trans &trans &trans &kp C_VOL_UP &kp C_VOL_DN &kp C_MUTE + >; + }; + }; +};