From 91202fc69704b493a881fd6b10535997b1e9e2bc Mon Sep 17 00:00:00 2001 From: zvasoup Date: Sat, 17 Aug 2024 21:41:23 +0800 Subject: [PATCH] adding nav layer --- boards/shields/waffle-34k/waffle-34k.keymap | 46 +++++++++++++-------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/boards/shields/waffle-34k/waffle-34k.keymap b/boards/shields/waffle-34k/waffle-34k.keymap index f8ffd72..e9ee369 100644 --- a/boards/shields/waffle-34k/waffle-34k.keymap +++ b/boards/shields/waffle-34k/waffle-34k.keymap @@ -3,22 +3,34 @@ #include #include +#define def 0 +#define nav 1 + / { - keymap { - compatible = "zmk,keymap"; + keymap { + compatible = "zmk,keymap"; + + default { + // ----------------------------------------------------------------------------------------- + // | Q | W | F | P | B | | J | L | U | Y | ; | + // | A | R | S | T | G | | M | N | E | I | O | + // | X | C | D | V | Z | | K | H | , | . | / | + // | GUI | LWR | SPC | | ENT | RSE | ALT | + bindings = < + &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SEMI + &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O + &kp X &kp C &kp D &kp V &kp Z &kp K &kp H &kp COMMA &kp DOT &kp FSLH + &kp BSPC &kp TAB &kp SPACE &kp RET + >; + }; - default_layer { -// ----------------------------------------------------------------------------------------- -// | Q | W | E | R | T | | Y | U | I | O | P | -// | A | S | D | F | G | | H | J | K | L | ; | -// | Z | X | C | V | B | | N | M | , | . | / | -// | GUI | LWR | SPC | | ENT | RSE | ALT | - bindings = < - &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SEMI - &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O - &kp X &kp C &kp D &kp V &kp Z &kp K &kp H &kp COMMA &kp DOT &kp FSLH - &kp BSPC &kp TAB &kp SPACE &kp RET - >; - }; - }; -}; + navigation { + bindings = < + &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR + &trans &trans &trans &trans &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp SQT + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans + >; + }; + }; +};