added ajust layer

This commit is contained in:
Edder Rojas 2021-09-08 01:03:05 -06:00
parent 1df041f68d
commit c2bc622037
2 changed files with 40 additions and 4 deletions

17
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [],
"compilerPath": "/opt/homebrew/bin/arm-none-eabi-gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "macos-gcc-arm"
}
],
"version": 4
}

View File

@ -8,6 +8,11 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#define DEFAULT 0
#define LOWER 1
#define RAISE 2
#define ADJUST 3
/ {
keymap {
compatible = "zmk,keymap";
@ -35,7 +40,7 @@
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
&kp LSHFT &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR
&kp LGUI &trans &kp RET &kp SPACE &trans &kp RALT
&kp LGUI &trans &kp RET &kp SPACE &mo 3 &kp RALT
>;
};
@ -43,14 +48,28 @@
// -----------------------------------------------------------------------------------------
// | ESC | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP |
// | MUTE |VOLDN|VOLUP| PREV| NEXT| PLAY| | - | = | { | } | \ | ` |
// | CAPS | | | | BRID| BRIU| | _ | + | [ | ] | "|" | ~ |
// | SHFT | | | | BRID| BRIU| | _ | + | [ | ] | "|" | ~ |
// | GUI | | ENT | | SPC | | ALT |
bindings = <
&kp ESC &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp BSPC
&kp C_MUTE &kp C_VOL_DN &kp C_VOL_UP &kp C_PREV &kp C_NEXT &kp C_PP &kp MINUS &kp EQUAL &kp LBRC &kp RBRC &kp BSLH &kp GRAVE
&kp CAPS &trans &trans &trans &kp C_BRI_DN &kp C_BRI_UP &kp UNDER &kp PLUS &kp LBKT &kp RBKT &kp PIPE &kp TILDE
&kp LGUI &trans &kp RET &kp SPACE &trans &kp RALT
&kp LSHIFT &trans &trans &trans &kp C_BRI_DN &kp C_BRI_UP &kp UNDER &kp PLUS &kp LBKT &kp RBKT &kp PIPE &kp TILDE
&kp LGUI &mo 3 &kp RET &kp SPACE &trans &kp RALT
>;
};
adjust_layer {
// -----------------------------------------------------------------------------------------
// | ESC | | | | | | | | | | | | BKSP |
// | BTCLR| BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
// | CAPS | | | | | | | | | | | | |
// | GUI | | ENT | | SPC | | ALT |
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &trans &trans
& CAPS &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
};
};
};
};