zmk-config/config/cradio.keymap

96 lines
3.9 KiB
Text
Raw Normal View History

2023-05-26 22:00:21 +00:00
// Copyright (c) 2022 The ZMK Contributors
// SPDX-License-Identifier: MIT
2023-05-31 20:22:53 +00:00
// https://nickcoutsos.github.io/keymap-editor/
2023-05-26 22:00:21 +00:00
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
2023-05-31 20:22:53 +00:00
#include <dt-bindings/zmk/keys.h>
2023-05-26 22:00:21 +00:00
2023-05-31 20:22:53 +00:00
&lt {
flavor = "tap-preferred";
tapping-term-ms = <150>;
quick-tap-ms = <0>;
};
2023-05-26 22:00:21 +00:00
/ {
behaviors {
2023-05-31 20:22:53 +00:00
lhm: left_hand_positional_hold_tap {
2023-05-26 22:00:21 +00:00
compatible = "zmk,behavior-hold-tap";
2023-05-31 20:22:53 +00:00
label = "LEFT_POSITIONAL_HOLD_TAP";
2023-05-26 22:00:21 +00:00
#binding-cells = <2>;
flavor = "tap-preferred";
2023-05-31 20:22:53 +00:00
tapping-term-ms = <150>;
quick-tap-ms = <0>;
bindings =
<&kp>,
<&kp>;
// hold-trigger-key-positions = <5 6 7 8 9 15 16 17 18 19 25 26 27 28 29 30 31 32 33 34 35>;
// hold-trigger-key-positions = <5 6 7 8 9 10 11 12 13 15 16 17 18 19 25 26 27 28 29 30 31 32 33 34 35>;
};
rhm: right_hand_positional_hold_tap {
compatible = "zmk,behavior-hold-tap";
label = "RIGHT_POSITIONAL_HOLD_TAP";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <150>;
quick-tap-ms = <0>;
bindings =
<&kp>,
<&kp>;
// hold-trigger-key-positions = <0 1 2 3 4 10 11 12 13 14 20 21 22 23 24 30 31 32 33 34 35>;
// hold-trigger-key-positions = <0 1 2 3 4 10 11 12 13 14 16 17 18 19 20 21 22 23 24 30 31 32 33 34 35>;
2023-05-26 22:00:21 +00:00
};
};
conditional_layers {
compatible = "zmk,conditional-layers";
2023-05-31 20:22:53 +00:00
2023-05-26 22:00:21 +00:00
tri_layer {
if-layers = <1 2>;
then-layer = <3>;
};
};
keymap {
compatible = "zmk,keymap";
2023-05-31 20:22:53 +00:00
2023-05-26 22:00:21 +00:00
default_layer {
bindings = <
2023-05-31 20:22:53 +00:00
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&lhm LSHFT A &lhm LALT S &lhm LCTRL D &lhm LGUI F &lhm RALT G &rhm RALT H &rhm LGUI J &rhm LCTRL K &rhm LALT L &rhm LSHFT SEMICOLON
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
&lt 2 TAB &kp ENTER &kp SPACE &lt 1 BSPC
2023-05-26 22:00:21 +00:00
>;
};
right_layer {
bindings = <
2023-05-31 20:22:53 +00:00
&kp ESC &kp LBKT &kp LBRC &kp LPAR &kp TILDE &kp CARET &kp RPAR &kp RBRC &kp RBKT &kp GRAVE
&kp MINUS &kp STAR &kp EQUAL &kp UNDERSCORE &kp DOLLAR &rhm RALT HASH &kp LGUI &kp LCTRL &kp LALT &kp LSHFT
&kp PLUS &kp PIPE &kp AT &kp SINGLE_QUOTE &kp PERCENT &kp AMPERSAND &kp BACKSLASH &kp RA(SLASH) &kp QUESTION &kp EXCLAMATION
&trans &trans &trans &trans
2023-05-26 22:00:21 +00:00
>;
};
left_layer {
bindings = <
2023-05-31 20:22:53 +00:00
&kp NUMBER_1 &kp NUMBER_2 &kp NUMBER_3 &kp NUMBER_4 &kp NUMBER_5 &kp NUMBER_6 &kp NUMBER_7 &kp NUMBER_8 &kp NUMBER_9 &kp NUMBER_0
&kp LSHFT &kp LALT &kp LCTRL &kp LGUI &kp BACKSPACE &kp LEFT &kp DOWN &kp UP &kp RIGHT &none
&trans &kp C_MUTE &kp C_VOLUME_UP &kp C_VOLUME_DOWN &kp PRINTSCREEN &kp HOME &kp PG_DN &kp PG_UP &kp END &none
&trans &trans &trans &trans
2023-05-26 22:00:21 +00:00
>;
};
tri_layer {
bindings = <
2023-05-31 20:22:53 +00:00
&sys_reset &trans &trans &trans &bt BT_SEL 0 &trans &trans &trans &trans &sys_reset
&bootloader &trans &trans &trans &bt BT_SEL 1 &trans &trans &trans &trans &bootloader
&trans &trans &trans &bt BT_CLR &bt BT_SEL 2 &trans &trans &trans &trans &trans
&trans &trans &trans &trans
2023-05-26 22:00:21 +00:00
>;
};
};
};