Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
magoz committed Dec 17, 2024
1 parent 4afe20c commit 0f85f33
Showing 1 changed file with 1 addition and 137 deletions.
138 changes: 1 addition & 137 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
@@ -1,137 +1 @@
/*
* 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>


#define TAPPING_TERM 200

#define L_BASE 0
#define L_SHORTCUTS 1
#define L_APPS 2
#define L_SYMBOLS 3
#define L_NUMBERS 4
#define L_CONTROLS 5
#define L_ONEHAND 6
#define L_ONEHAND_NUMBERS 7
#define L_BLUETOOTH 8

#define HYPER(key) LS(LC(LA(LG(key))))
#define KMAESTRO(key) LS(LC(LA(key)))
#define INTERPUNCT LS(LA(N9))
#define BULLET LA(N8)
#define EXCLAMATION_INVERTED LA(N1)
#define QUESTION_INVERTED LS(LA(SLASH))
#define ORDINAL_MASCULINE LA(N0)
#define ORDINAL_FEMENINE LA(N9)
#define DEGREE LS(LA(N8))
#define EUR LS(LA(N2))
#define GBP LA(N3)


&mt {
tapping-term-ms = <TAPPING_TERM>;
flavor = "tap-preferred";
};

/ {

combos {
compatible = "zmk,combos";
combo_bluetooth_layer {
timeout-ms = <50>;
key-positions = <30 31 32 33>;
bindings = <&sl L_BLUETOOTH>;
};
};

keymap {
compatible = "zmk,keymap";

default_layer {
bindings = <
&kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SEMICOLON
&mt LCTRL A &mt LALT R &mt LCMD S &mt LSHIFT T &kp G &kp M &mt LSHIFT N &mt LCMD E &mt LALT I &mt LCTRL O
&kp Z &kp X &kp C &kp D &kp V &kp K &kp H &kp COMMA &kp DOT &kp SLASH
&lt L_SHORTCUTS ESC &lt L_SYMBOLS RETURN &lt L_NUMBERS SPACE &lt L_CONTROLS BACKSPACE
>;
};

shortcuts_layer {
bindings = <
&kp TAB &none &none &caps_word &kp BACKSPACE &none &none &none &none &none
&sk LCTRL &sk LALT &sk LCMD &sk LSHIFT &sl L_APPS &none &none &none &none &none
&none &none &sl L_ONEHAND_NUMBERS &sl L_ONEHAND &kp SPACE &none &none &none &none &none
&none &none &none &none
>;
};

apps_layer {
bindings = <
&kp KMAESTRO(F1) &kp KMAESTRO(F2) &kp KMAESTRO(F3) &kp KMAESTRO(F4) &none &none &none &none &none &none
&kp KMAESTRO(F5) &kp KMAESTRO(F6) &kp KMAESTRO(F7) &kp KMAESTRO(F8) &none &none &none &none &none &none
&kp KMAESTRO(F9) &kp KMAESTRO(F10) &kp KMAESTRO(F11) &kp KMAESTRO(F12) &none &none &none &none &none &none
&none &none &none &none
>;
};

symbols_layer {
bindings = <
&kp TILDE &kp CARET &kp INTERPUNCT &kp BULLET &none &none &none &none &none &none
&mt LCTRL BACKSLASH &mt LALT GRAVE &mt LCMD DOUBLE_QUOTES &mt LSHIFT SINGLE_QUOTE &kp AT_SIGN &kp EXCLAMATION &mt LSHIFT LEFT_PARENTHESIS &mt LCMD LEFT_BRACE &mt LALT LEFT_BRACKET &mt LCTRL QUESTION
&none &none &none &kp AMPERSAND &kp PIPE &kp EXCLAMATION_INVERTED &kp RIGHT_PARENTHESIS &kp RIGHT_BRACE &kp RIGHT_BRACKET &kp QUESTION_INVERTED
&none &none &kp TAB &kp DELETE
>;
};

numbers_layer {
bindings = <
&none &kp ORDINAL_MASCULINE &kp ORDINAL_FEMENINE &kp DEGREE &none &kp GBP &kp N7 &kp N8 &kp N9 &kp N0
&mt LCTRL UNDERSCORE &mt LALT PLUS &mt LCMD MINUS &mt LSHIFT EQUAL &kp HASH &kp EUR &mt LSHIFT N4 &mt LCMD N5 &mt LALT N6 &mt LCTRL PERIOD
&none &none &kp SLASH &kp ASTERISK &kp PERCENT &kp DOLLAR &kp N1 &kp N2 &kp N3 &kp COMMA
&none &none &none &none
>;
};

controls_layer {
bindings = <
&kp F15 &kp F7 &kp F8 &kp F9 &kp F10 &kp DOWN &kp RIGHT &kp K_MUTE &none &kp C_PLAY_PAUSE
&mt LCTRL F14 &mt LALT F4 &mt LCMD F5 &mt LSHIFT F6 &kp F11 &kp PAGE_UP &mt LSHIFT PAGE_DOWN &mt LCMD C_VOLUME_UP &mt LALT F15 &mt LCTRL C_NEXT
&kp F13 &kp F1 &kp F2 &kp F3 &kp F12 &kp UP &kp LEFT &kp C_VOLUME_DOWN &kp F14 &kp C_PREVIOUS
&none &none &none &none
>;
};

onehand_layer {
bindings = <
&kp SEMICOLON &kp Y &kp U &kp L &kp J &none &none &none &none &none
&mt LCTRL O &mt LALT I &mt LCMD E &mt LSHIFT N &kp M &none &none &none &none &none
&kp SLASH &kp DOT &kp COMMA &kp H &kp K &none &none &none &none &none
&none &kp RETURN &none &none
>;
};

onehand_numbers_layer {
bindings = <
&none &kp N7 &kp N8 &kp N9 &kp N0 &none &none &none &none &none
&kp LCTRL &mt LALT N4 &mt LCMD N5 &mt LSHIFT N6 &kp EUR &none &none &none &none &none
&none &kp N1 &kp N2 &kp N3 &kp DOLLAR &none &none &none &none &none
&none &kp RETURN &none &none
>;
};

bluetooth_layer {
bindings = <
&none &none &none &none &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_CLR
&none &none &none &none &none &kp N1 &none &none &none &none
&none &none &none &none &none &none &none &none &none &none
&none &none &none &none
>;
};

};
};
#include "base.dtsi"

0 comments on commit 0f85f33

Please sign in to comment.