Skip to content

Commit

Permalink
added reset to keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
keymap-editor[bot] committed Sep 14, 2023
1 parent 2e42f1b commit 66656d7
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 121 deletions.
89 changes: 46 additions & 43 deletions config/osprey_a.json
@@ -1,53 +1,56 @@
{
"id": "osprey_a",
"name": "osprey_a",
"layouts": {
"LAYOUT": {
"layout": [
{ "label": "Tab", "row": 0, "col": 0, "x": 0, "y": 0.75 },
{ "label": "Q", "row": 0, "col": 1, "x": 1, "y": 0.50 },
{ "label": "W", "row": 0, "col": 2, "x": 2, "y": 0.25 },
{ "label": "E", "row": 0, "col": 3, "x": 3, "y": 0.00 },
{ "label": "R", "row": 0, "col": 4, "x": 4, "y": 0.25 },
{ "label": "T", "row": 0, "col": 5, "x": 5, "y": 0.50 },
{ "label": "Y", "row": 0, "col": 7, "x": 8, "y": 0.50 },
{ "label": "U", "row": 0, "col": 8, "x": 9, "y": 0.25 },
{ "label": "I", "row": 0, "col": 9, "x": 10, "y": 0.00 },
{ "label": "O", "row": 0, "col": 10, "x": 11, "y": 0.25 },
{ "label": "P", "row": 0, "col": 11, "x": 12, "y": 0.50 },
{ "label": "BSPC", "row": 0, "col": 12, "x": 13, "y": 0.75 },
{ "label": "Tab", "row": 0, "col": 0, "x": 0, "y": 0.75 },
{ "label": "Q", "row": 0, "col": 1, "x": 1, "y": 0.5 },
{ "label": "W", "row": 0, "col": 2, "x": 2, "y": 0.25 },
{ "label": "E", "row": 0, "col": 3, "x": 3, "y": 0 },
{ "label": "R", "row": 0, "col": 4, "x": 4, "y": 0.25 },
{ "label": "T", "row": 0, "col": 5, "x": 5, "y": 0.5 },
{ "label": "Y", "row": 0, "col": 7, "x": 8, "y": 0.5 },
{ "label": "U", "row": 0, "col": 8, "x": 9, "y": 0.25 },
{ "label": "I", "row": 0, "col": 9, "x": 10, "y": 0 },
{ "label": "O", "row": 0, "col": 10, "x": 11, "y": 0.25 },
{ "label": "P", "row": 0, "col": 11, "x": 12, "y": 0.5 },
{ "label": "BSPC", "row": 0, "col": 12, "x": 13, "y": 0.75 },

{ "label": "Ctrl", "row": 1, "col": 0, "x": 0, "y": 1.75 },
{ "label": "A", "row": 1, "col": 1, "x": 1, "y": 1.50 },
{ "label": "S", "row": 1, "col": 2, "x": 2, "y": 1.25 },
{ "label": "D", "row": 1, "col": 3, "x": 3, "y": 1.00 },
{ "label": "F", "row": 1, "col": 4, "x": 4, "y": 1.25 },
{ "label": "G", "row": 1, "col": 5, "x": 5, "y": 1.50 },
{ "label": "H", "row": 1, "col": 7, "x": 8, "y": 1.50 },
{ "label": "J", "row": 1, "col": 8, "x": 9, "y": 1.25 },
{ "label": "K", "row": 1, "col": 9, "x": 10, "y": 1.00 },
{ "label": "L", "row": 1, "col": 10, "x": 11, "y": 1.25 },
{ "label": ";", "row": 1, "col": 11, "x": 12, "y": 1.50 },
{ "label": "'", "row": 1, "col": 12, "x": 13, "y": 1.75 },
{ "label": "Ctrl", "row": 1, "col": 0, "x": 0, "y": 1.75 },
{ "label": "A", "row": 1, "col": 1, "x": 1, "y": 1.5 },
{ "label": "S", "row": 1, "col": 2, "x": 2, "y": 1.25 },
{ "label": "D", "row": 1, "col": 3, "x": 3, "y": 1 },
{ "label": "F", "row": 1, "col": 4, "x": 4, "y": 1.25 },
{ "label": "G", "row": 1, "col": 5, "x": 5, "y": 1.5 },
{ "label": "H", "row": 1, "col": 7, "x": 8, "y": 1.5 },
{ "label": "J", "row": 1, "col": 8, "x": 9, "y": 1.25 },
{ "label": "K", "row": 1, "col": 9, "x": 10, "y": 1 },
{ "label": "L", "row": 1, "col": 10, "x": 11, "y": 1.25 },
{ "label": ";", "row": 1, "col": 11, "x": 12, "y": 1.5 },
{ "label": "'", "row": 1, "col": 12, "x": 13, "y": 1.75 },

{ "label": "LShift", "row": 2, "col": 0, "x": 0, "y": 2.75 },
{ "label": "Z", "row": 2, "col": 1, "x": 1, "y": 2.50 },
{ "label": "X", "row": 2, "col": 2, "x": 2, "y": 2.25 },
{ "label": "C", "row": 2, "col": 3, "x": 3, "y": 2.00 },
{ "label": "V", "row": 2, "col": 4, "x": 4, "y": 2.25 },
{ "label": "B", "row": 2, "col": 5, "x": 5, "y": 2.50 },
{ "label": "N", "row": 2, "col": 7, "x": 8, "y": 2.50 },
{ "label": "M", "row": 2, "col": 8, "x": 9, "y": 2.25 },
{ "label": ",", "row": 2, "col": 9, "x": 10, "y": 2.00 },
{ "label": ".", "row": 2, "col": 10, "x": 11, "y": 2.25 },
{ "label": "/", "row": 2, "col": 11, "x": 12, "y": 2.50 },
{ "label": "Enter", "row": 2, "col": 12, "x": 13, "y": 2.75 },
{ "label": "LShift", "row": 2, "col": 0, "x": 0, "y": 2.75 },
{ "label": "Z", "row": 2, "col": 1, "x": 1, "y": 2.5 },
{ "label": "X", "row": 2, "col": 2, "x": 2, "y": 2.25 },
{ "label": "C", "row": 2, "col": 3, "x": 3, "y": 2 },
{ "label": "V", "row": 2, "col": 4, "x": 4, "y": 2.25 },
{ "label": "B", "row": 2, "col": 5, "x": 5, "y": 2.5 },
{ "label": "N", "row": 2, "col": 7, "x": 8, "y": 2.5 },
{ "label": "M", "row": 2, "col": 8, "x": 9, "y": 2.25 },
{ "label": ",", "row": 2, "col": 9, "x": 10, "y": 2 },
{ "label": ".", "row": 2, "col": 10, "x": 11, "y": 2.25 },
{ "label": "/", "row": 2, "col": 11, "x": 12, "y": 2.5 },
{ "label": "Enter", "row": 2, "col": 12, "x": 13, "y": 2.75 },

{ "label": "ALT", "row": 3, "col": 3, "x": 3, "y": 3.00 },
{ "label": "LWR", "row": 3, "col": 4, "x": 4, "y": 3.25 },
{ "label": "SPC", "row": 3, "col": 5, "x": 5.00, "y": 3.50, "w": 1.50 },
{ "label": "RShift", "row": 3, "col": 6, "x": 7.50, "y": 3.50, "w": 1.50 },
{ "label": "RSE", "row": 3, "col": 7, "x": 9, "y": 3.25 },
{ "label": "ALT", "row": 3, "col": 8, "x": 10, "y": 3.00 }
{ "label": "ALT", "row": 3, "col": 3, "x": 3, "y": 3 },
{ "label": "LWR", "row": 3, "col": 4, "x": 4, "y": 3.25 },
{ "label": "SPC", "row": 3, "col": 5, "x": 5, "y": 3.5, "w": 1.5 },
{ "label": "RShift", "row": 3, "col": 6, "x": 7.5, "y": 3.5, "w": 1.5 },
{ "label": "RSE", "row": 3, "col": 7, "x": 9, "y": 3.25 },
{ "label": "ALT", "row": 3, "col": 8, "x": 10, "y": 3 }
]
}
}
},
"sensors": []
}
159 changes: 81 additions & 78 deletions config/osprey_a.keymap
Expand Up @@ -5,100 +5,103 @@
*/

#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/keys.h>

// I am using Win + Arrows for tiling, LG(code) hoewever caused some glitches with sending both LGUI + arrow and then LGUI separately.
// This leadis to unwanted opening of the start menu. These macros work around this issue.

/ {
macros {
lgleft: lgleft {
label = "lgleft";
label = "lgleft";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_press &kp LWIN>
, <&macro_tap &kp LEFT>
, <&macro_release &kp LWIN>
;
};

lgright: lgright {
label = "lgright";
#binding-cells = <0>;
bindings =
<&macro_press>,
<&kp LWIN>,
<&macro_tap>,
<&kp LEFT>,
<&macro_release>,
<&kp LWIN>;
};
lgright: lgright {
label = "lgright";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_press &kp LWIN>
, <&macro_tap &kp RIGHT>
, <&macro_release &kp LWIN>
;
};

lgup: lgup {
label = "lgup";
#binding-cells = <0>;
bindings =
<&macro_press>,
<&kp LWIN>,
<&macro_tap>,
<&kp RIGHT>,
<&macro_release>,
<&kp LWIN>;
};
lgup: lgup {
label = "lgup";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_press &kp LWIN>
, <&macro_tap &kp UP>
, <&macro_release &kp LWIN>
;
};

lgdown: lgdown {
label = "lgdown";
#binding-cells = <0>;
bindings =
<&macro_press>,
<&kp LWIN>,
<&macro_tap>,
<&kp UP>,
<&macro_release>,
<&kp LWIN>;
};
lgdown: lgdown {
label = "lgdown";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_press &kp LWIN>
, <&macro_tap &kp DOWN>
, <&macro_release &kp LWIN>
;
};

#binding-cells = <0>;
bindings =
<&macro_press>,
<&kp LWIN>,
<&macro_tap>,
<&kp DOWN>,
<&macro_release>,
<&kp LWIN>;
};
};
};

/ {
keymap {
compatible = "zmk,keymap";
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
&kp LCTRL &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 SLASH &kp ENTER
&kp LALT &mo 1 &kp SPACE &kp RSHFT &mo 2 &kp RALT

>;
};
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
&kp LCTRL &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 SLASH &kp ENTER
&kp LALT &mo 1 &kp SPACE &kp RSHFT &mo 2 &kp RALT
>;
};

nav_layer {
bindings = <
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp DEL
&trans &trans &trans &trans &trans &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp NON_US_HASH &trans
&trans &kp NON_US_BSLH &trans &trans &trans &trans &lgleft &lgdown &lgup &lgright &trans &trans
&kp LWIN &trans &trans &trans &mo 3 &kp RALT
>;
};
nav_layer {
bindings = <
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp DEL
&trans &trans &trans &trans &trans &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp NON_US_HASH &trans
&trans &kp NON_US_BSLH &trans &trans &trans &trans &lgleft &lgdown &lgup &lgright &trans &trans
&kp LWIN &trans &trans &trans &mo 3 &kp RALT
>;
};

symbol_layer {
bindings = <
&trans &kp LS(N1) &kp LS(N2) &kp LS(N3) &kp LS(N4) &kp LS(N5) &kp LS(N6) &kp LS(N7) &kp LS(N8) &kp LS(N9) &kp LS(N0) &trans
&trans &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp NON_US_HASH &kp GRAVE
&trans &kp LS(NON_US_BSLH) &trans &trans &trans &trans &kp LS(MINUS) &kp LS(EQUAL) &kp LS(LBKT) &kp LS(RBKT) &kp LS(NON_US_HASH) &kp LS(GRAVE)
&kp LWIN &mo 3 &trans &trans &trans &trans
>;
};
symbol_layer {
bindings = <
&trans &kp LS(N1) &kp LS(N2) &kp LS(N3) &kp LS(N4) &kp LS(N5) &kp LS(N6) &kp LS(N7) &kp LS(N8) &kp LS(N9) &kp LS(N0) &trans
&trans &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp NON_US_HASH &kp GRAVE
&trans &kp LS(NON_US_BSLH) &trans &trans &trans &trans &kp LS(MINUS) &kp LS(EQUAL) &kp LS(LBKT) &kp LS(RBKT) &kp LS(NON_US_HASH) &kp LS(GRAVE)
&kp LWIN &mo 3 &trans &trans &trans &trans
>;
};

F_layer {
bindings = <
&kp F1 &kp F2 &kp F4 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &trans &trans &kp HOME &kp PG_DN &kp PG_UP &kp END &trans &trans
&trans &trans &trans &trans &trans &bootloader &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
};
};
};
F_layer {
bindings = <
&kp F1 &kp F2 &kp F4 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &trans &sys_reset &kp HOME &kp PG_DN &kp PG_UP &kp END &trans &trans
&trans &trans &trans &trans &trans &bootloader &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
};
};
};

0 comments on commit 66656d7

Please sign in to comment.