mirror of
https://github.com/tcaxle/zmk-config.git
synced 2026-02-20 19:25:14 +00:00
Initial commit
This commit is contained in:
123
config/corne.keymap
Normal file
123
config/corne.keymap
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* Copyright (c) 2020 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/rgb.h>
|
||||
|
||||
// dt-formatter: indent = " "
|
||||
// dt-formatter: reindentMultilineIntegerCells = "dedent"
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
hm: homerow_mods {
|
||||
compatible = "zmk,behavior-hold-tap";
|
||||
label = "HOMEROW_MODS";
|
||||
#binding-cells = <2>;
|
||||
tapping-term-ms = <150>;
|
||||
quick-tap-ms = <0>;
|
||||
flavor = "tap-preferred";
|
||||
bindings =
|
||||
<&kp>,
|
||||
<&kp>;
|
||||
};
|
||||
};
|
||||
|
||||
combos {
|
||||
compatible = "zmk,combos";
|
||||
|
||||
tab {
|
||||
bindings = <&trans>;
|
||||
key-positions = <2 3>;
|
||||
};
|
||||
|
||||
ctrl {
|
||||
bindings = <&kp LCTRL>;
|
||||
key-positions = <26 27>;
|
||||
};
|
||||
|
||||
cmd {
|
||||
bindings = <&kp LCMD>;
|
||||
key-positions = <37 38>;
|
||||
};
|
||||
|
||||
alt {
|
||||
bindings = <&kp LEFT_ALT>;
|
||||
key-positions = <39 40>;
|
||||
};
|
||||
|
||||
shift {
|
||||
bindings = <&kp LSHIFT>;
|
||||
key-positions = <8 9>;
|
||||
};
|
||||
|
||||
caps_word {
|
||||
bindings = <&caps_word>;
|
||||
key-positions = <17 18>;
|
||||
};
|
||||
|
||||
delete {
|
||||
bindings = <&kp DEL>;
|
||||
key-positions = <32 33>;
|
||||
};
|
||||
};
|
||||
|
||||
macros {
|
||||
zed_em_kay: zed_em_kay {
|
||||
compatible = "zmk,behavior-macro";
|
||||
label = "ZM_zed_em_kay";
|
||||
#binding-cells = <0>;
|
||||
bindings =
|
||||
<¯o_press>,
|
||||
<&kp LSHFT>,
|
||||
<¯o_tap>,
|
||||
<&kp Z &kp M &kp K>,
|
||||
<¯o_release>,
|
||||
<&kp LSHFT>;
|
||||
};
|
||||
};
|
||||
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
base {
|
||||
bindings = <
|
||||
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH
|
||||
&kp LCTRL &hm LGUI A &hm LALT S &hm LCTRL D &hm LSHIFT F &kp G &kp H &hm RSHIFT J &hm RCTRL K &hm RALT L &hm RGUI SEMI &kp APOS
|
||||
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp ESC
|
||||
&kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT
|
||||
>;
|
||||
};
|
||||
|
||||
raise {
|
||||
bindings = <
|
||||
&trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&trans &trans &trans &trans &mo 3 &trans
|
||||
>;
|
||||
};
|
||||
|
||||
lower {
|
||||
bindings = <
|
||||
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &trans
|
||||
&trans &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
|
||||
&trans &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
|
||||
&trans &mo 3 &trans &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
|
||||
both {
|
||||
bindings = <
|
||||
&trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 3 &trans &trans &trans &trans &rgb_ug RGB_COLOR_HSB(0,60,50)
|
||||
&trans &trans &trans &trans &trans &bt BT_SEL 1 &bt BT_SEL 4 &trans &trans &trans &trans &rgb_ug RGB_COLOR_HSB(120,60,50)
|
||||
&trans &trans &trans &trans &trans &bt BT_SEL 2 &bt BT_CLR &trans &trans &trans &trans &rgb_ug RGB_COLOR_HSB(240,60,50)
|
||||
&trans &trans &trans &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user