zmkafk/config/corne.keymap

66 lines
2.8 KiB
Text
Raw Normal View History

/*
* Copyright (c) 2024 Christina Sørensen
* SPDX-License-Identifier: EUPL-1.2
*/
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#define DEFAULT 0
#define NUMBERS 1
#define RAISE 2
&mt {
tapping-term-ms = <150>;
quick-tap-ms = <200>;
flavor = "tap-preferred";
};
/ {
keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&mt LGUI ESC &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHIFT
&mt LCTRL SPC &mt RALT RET &lt NUMBERS EQUAL &kp MINUS &kp DEL &mt LALT BSPC
>;
};
NUMBERS {
bindings = <
&kp GRAVE &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp PIPE
&kp LEFT_BRACE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp RIGHT_BRACE
&kp LEFT_BRACKET &trans &trans &trans &trans &trans &kp UNDERSCORE &kp PLUS &kp COMMA &kp DOT &kp PIPE &kp RIGHT_BRACKET
&mt LCTRL SPC &mt RALT RET &kp EQUAL &kp MINUS &kp DEL &mt LALT BSPC
>;
};
// LSFT_T(KC_LBRC), KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_UNDS, KC_PLUS, KC_COMM, KC_DOT, KC_PIPE, RSFT_T(KC_RBRC),
// //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
// LCTL_T(KC_SPC), LALT_T(KC_ENT), LT(1, KC_EQL), LT(2, KC_MINS), LT(4, KC_DEL), RALT_T(KC_BSPC)
// //`--------------------------' `--------------------------'
// lower_layer {
// bindings = <
// &kp TAB &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
// &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
// &kp LSHFT &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
// &kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
// >;
// };
raise_layer {
bindings = <
&kp TAB &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp BSPC
&kp LCTRL &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
&kp LSHFT &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
>;
};
};
};