Skip to content

Commit

Permalink
gaming layer and simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
NikodemMarek committed Nov 30, 2023
1 parent 84d3d53 commit 73b8b8c
Showing 1 changed file with 36 additions and 26 deletions.
62 changes: 36 additions & 26 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,52 @@
combos {
compatible = "zmk,combos";

switch_to_qwerty {
bindings = <&to 5>;
tog_qwerty {
bindings = <&tog 5>;
key-positions = <10 14>;
require-prior-idle-ms = <2000>;
layers = <0>;
layers = <0 5>;
};

switch_to_dvorak {
bindings = <&to 0>;
key-positions = <14 10>;
require-prior-idle-ms = <2000>;
layers = <5>;
};

to_navigation {
bindings = <&to 3>;
tog_navigation {
bindings = <&tog 3>;
key-positions = <16 17>;
require-prior-idle-ms = <500>;
};

to_numpad {
bindings = <&to 4>;
tog_numpad {
bindings = <&tog 4>;
key-positions = <17 18>;
require-prior-idle-ms = <500>;
};

tog_gaming {
bindings = <&tog 6>;
key-positions = <4 0>;
require-prior-idle-ms = <500>;
};
};

keymap {
compatible = "zmk,keymap";

dvorak {
bindings = <
&kp SEMI &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L
&mt LEFT_ALT A &mt LEFT_SHIFT O &mt LEFT_CONTROL E &mt LEFT_META U &kp I &kp D &mt RIGHT_META H &mt RIGHT_CONTROL T &mt RIGHT_SHIFT N &mt RIGHT_ALT S
&kp SQT &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z
&kp ESCAPE &kp TAB &lt 1 SPACE &kp ENTER
&kp SEMI &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L
&mt LEFT_ALT A &mt LEFT_SHIFT O &mt LEFT_CONTROL E &mt LEFT_META U &kp I &kp D &mt RIGHT_META H &mt RIGHT_CONTROL T &mt RIGHT_SHIFT N &mt RIGHT_ALT S
&kp SQT &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z
&kp ESCAPE &kp TAB &lt 1 SPACE &kp ENTER
>;

label = "dvorak";
};

symbols {
bindings = <
&kp N7 &kp N5 &kp N3 &kp N1 &kp N9 &kp N0 &kp N2 &kp N4 &kp N6 &kp N8
&kp LBKT &kp LEFT_BRACE &kp RBRC &kp LPAR &kp EQUAL &kp STAR &kp RPAR &kp PLUS &kp RIGHT_BRACE &kp EXCL
&kp DLLR &kp AMPS &kp BSLH &kp PLUS &kp AT &kp HASH &kp MINUS &kp FSLH &kp UNDERSCORE &kp CARET
&kp BACKSPACE &kp DELETE &trans &trans
&kp N7 &kp N5 &kp N3 &kp N1 &kp N9 &kp N0 &kp N2 &kp N4 &kp N6 &kp N8
&kp LBKT &kp LEFT_BRACE &kp RBRC &kp LPAR &kp EQUAL &kp STAR &kp RPAR &kp PLUS &kp RIGHT_BRACE &kp EXCL
&kp DLLR &kp AMPS &kp BSLH &kp PLUS &kp AT &kp HASH &kp MINUS &kp FSLH &kp UNDERSCORE &kp CARET
&kp BACKSPACE &kp DELETE &trans &trans
>;

label = "symbols";
Expand Down Expand Up @@ -94,11 +93,22 @@

qwerty {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&mt LEFT_META A &mt LEFT_SHIFT S &mt LEFT_CONTROL D &mt LEFT_ALT F &kp G &kp H &mt RIGHT_ALT J &mt RIGHT_CONTROL K &mt RIGHT_SHIFT L &mt RIGHT_META SEMI
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
&kp ESCAPE &kp TAB &lt 1 SPACE &kp ENTER
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&mt LEFT_META A &mt LEFT_SHIFT S &mt LEFT_CONTROL D &mt LEFT_ALT F &kp G &kp H &mt RIGHT_ALT J &mt RIGHT_CONTROL K &mt RIGHT_SHIFT L &mt RIGHT_META SEMI
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
&kp ESCAPE &kp TAB &lt 1 SPACE &kp ENTER
>;
};

gaming {
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &trans &trans &trans &trans &trans
&kp LSHFT &kp A &kp S &kp D &kp F &trans &trans &trans &trans &trans
&kp LCTRL &kp Z &kp X &kp C &kp V &trans &trans &trans &trans &trans
&kp LALT &kp SPACE &trans &trans
>;

label = "gaming";
};
};
};

0 comments on commit 73b8b8c

Please sign in to comment.