Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4x6+6+2 TB #2

Open
wants to merge 88 commits into
base: 4x6+6+2-TB
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
72f58b6
Updated keymap
KAcotton May 31, 2024
befabe0
Debugging
KAcotton May 31, 2024
b6e23a7
Debugging again :(
KAcotton May 31, 2024
0c2fac9
Debugging again.
KAcotton May 31, 2024
616ad45
Debugging
KAcotton May 31, 2024
c473bcc
One Layer at a time.
KAcotton May 31, 2024
245bf3e
Removed behaviors.dtsi changed bl and bl to mt
KAcotton May 31, 2024
e2add26
Testing #define for layer
KAcotton May 31, 2024
5b8aafe
Added NUM layer #define and keymap
KAcotton May 31, 2024
2dc6433
removded #define layer_1 NUM
KAcotton May 31, 2024
2996386
Remove NUM layer and added my_behaviors
KAcotton May 31, 2024
00f1a91
move behaviors to keymap delete my_behaviors.dtsi
KAcotton May 31, 2024
4899b35
move behaviors to keymap and deleted my_behaviors
KAcotton May 31, 2024
08c3068
changed br to bmr and bl to bml
KAcotton May 31, 2024
448057f
ADDED DEFINES FOR TAPPING TERM QUICK TAP AND IDLE
KAcotton May 31, 2024
0c383c2
removed lt behavior
KAcotton May 31, 2024
86cf9a3
moved
KAcotton May 31, 2024
a61c1a6
added include for my_behaviors
KAcotton May 31, 2024
9200590
Moved behaviors back to keymap
KAcotton May 31, 2024
653f051
removed defines for tapping terms and idle
KAcotton May 31, 2024
6b9f866
ADDED NUM LAYER, CROSSING FINGERS
KAcotton May 31, 2024
012d757
Remove NUM layer, add NAV layer.
KAcotton May 31, 2024
1ec2743
Changed trigger key positions
KAcotton May 31, 2024
10642d9
removed nav layer added hold trigger on release f
KAcotton May 31, 2024
fb66611
Removed thumbs from key trigger, add NUM layer
KAcotton May 31, 2024
4edb9b0
Fixed something. FUCK.
KAcotton May 31, 2024
b090308
added semi-colon
KAcotton May 31, 2024
defbaf7
Fixed &KP
KAcotton Jun 1, 2024
7e0a197
Fixed &lt NUM
KAcotton Jun 1, 2024
ace417b
Fixed SLASH
KAcotton Jun 1, 2024
2c73d47
Fixed &lt ref
KAcotton Jun 1, 2024
e74e797
changed &lt to match #define
KAcotton Jun 1, 2024
eac1879
Removed #defines
KAcotton Jun 1, 2024
55fcbf0
Fixed SLASH
KAcotton Jun 1, 2024
5185dee
Key corrections
keymap-editor[bot] Jun 1, 2024
cb002b5
added layer_2
KAcotton Jun 1, 2024
4747d0c
added layer_3
KAcotton Jun 1, 2024
27c2e8b
fixed typos
KAcotton Jun 1, 2024
2e4ca2e
added layer_4
KAcotton Jun 1, 2024
6c29b99
fixed key codes for layer_4
KAcotton Jun 1, 2024
adc571e
added layer_5
KAcotton Jun 1, 2024
22ba94c
fixed error on line 117
KAcotton Jun 1, 2024
a415d34
Fixed hold-key-trigger-positions
KAcotton Jun 1, 2024
44f6459
fixed hold-trigger-key-positions
KAcotton Jun 1, 2024
27038f1
adjusted hold tap behavior ms
KAcotton Jun 1, 2024
5c6b59d
Fixed keymap
KAcotton Jun 1, 2024
428157e
Changed key codes on homerow
KAcotton Jun 1, 2024
f4f9837
Changed Encoder click to back
keymap-editor[bot] Jun 1, 2024
8d8c083
Corrected encoder click to LA(LEFT)
keymap-editor[bot] Jun 1, 2024
109aad0
Added PGUP PGDN HOME END TO NAV LAYER
KAcotton Jun 2, 2024
3492201
Fixed Keycode PG_DN
keymap-editor[bot] Jun 2, 2024
4a6e292
Moved space key
KAcotton Jun 12, 2024
50b2f37
changing keycodes
keymap-editor[bot] Jun 12, 2024
c21314d
Updated xiao_flex_v2.keymap
keymap-editor[bot] Jun 12, 2024
0415bca
keymap adjustments
keymap-editor[bot] Jun 12, 2024
b92a6c2
added question mark to layer 5
keymap-editor[bot] Jun 12, 2024
0ebe546
changed keycodes for slash and question mark
keymap-editor[bot] Jun 12, 2024
78870f1
changed keycodes for question mark
keymap-editor[bot] Jun 12, 2024
300a2da
mouse scroll behavior added
keymap-editor[bot] Jun 12, 2024
1a663fb
working on mouse scroll
keymap-editor[bot] Jun 12, 2024
d1f543d
working on mouse scroll
KAcotton Jun 12, 2024
115cf44
working on mouse scroll
keymap-editor[bot] Jun 12, 2024
733a36c
working on mouse scroll still
KAcotton Jun 12, 2024
224d1ec
fixing mouse scroll
KAcotton Jun 12, 2024
d252888
working scroll
KAcotton Jun 12, 2024
7f106d9
scroll behav adj.
KAcotton Jun 12, 2024
36f3473
mouse scroll attempt
KAcotton Jun 12, 2024
98c4442
mouse scroll behavior adjust
KAcotton Jun 12, 2024
b147fa0
mouse scroll attempt
KAcotton Jun 12, 2024
9264496
WORKING MS SCROLL
KAcotton Jun 12, 2024
c8314db
CHANGES TO MOUSE SCROLL BEHAV
KAcotton Jun 12, 2024
ff05a4d
changed tap -ms and move y
KAcotton Jun 12, 2024
2ea2c07
added backslash
keymap-editor[bot] Jun 13, 2024
4d75e34
Changed nav layer keys
keymap-editor[bot] Jun 15, 2024
a33e35d
added snipe layer to right overlay
KAcotton Jun 19, 2024
0e66f4e
Merge branch '4x6+6+2-TB' of https://github.com/KAcotton/zmk-xiao-fle…
KAcotton Jun 19, 2024
6065ae9
moved snipe to layer 1
KAcotton Jun 19, 2024
520b5ee
added percentage
keymap-editor[bot] Aug 1, 2024
7a832b5
changed keycode for percent
keymap-editor[bot] Aug 11, 2024
dbe4f07
LOWERED TAPPING TERM
keymap-editor[bot] Aug 29, 2024
a367b2d
CHANGED BEHAVIOR TO HOLD PREFERRED
keymap-editor[bot] Aug 29, 2024
af45723
Changed behavior back to balanced
keymap-editor[bot] Sep 3, 2024
6672ca9
added greater and less than to num layer
keymap-editor[bot] Oct 22, 2024
83f1c7a
added equal to layer 1
keymap-editor[bot] Oct 27, 2024
70ccb3c
addes grave accent/tilde
keymap-editor[bot] Oct 27, 2024
f56f03b
added symbols
keymap-editor[bot] Nov 1, 2024
ee1159a
added grave, carat, pipe on right
keymap-editor[bot] Nov 1, 2024
e35d4e2
1 Key quit working
keymap-editor[bot] Dec 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
spi-max-frequency = <2000000>;
irq-gpios = <&gpio0 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
scroll-layers = <4>;
snipe-layers = <1>;
};
};

Expand Down
1 change: 1 addition & 0 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ manifest:
revision: main
self:
path: config

120 changes: 100 additions & 20 deletions config/xiao_flex_v2.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,131 @@

#include <dt-bindings/led/led.h>
#include <behaviors/mouse_keys.dtsi>
#include <dt-bindings/zmk/mouse.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/mouse.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/pointing.h>
#include <dt-bindings/zmk/pointing.h>

/ {
behaviors {
bmr: right_balanced_homerow_mods {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <200>;
quick-tap-ms = <125>;
require-prior-idle-ms = <150>;
flavor = "balanced";
bindings = <&kp>, <&kp>;

hold-trigger-key-positions = <0 1 2 3 4 5 12 13 14 15 16 17 24 25 26 27 28 29 36 37>;
hold-trigger-on-release;
};

bml: left_balanced_homerow_mods {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <200>;
quick-tap-ms = <125>;
require-prior-idle-ms = <150>;
flavor = "balanced";
bindings = <&kp>, <&kp>;

hold-trigger-key-positions = <6 7 8 9 10 11 18 19 20 21 22 23 30 31 32 33 34 35 38 39 40>;
hold-trigger-on-release;
};

mscrl: mscrl {
compatible = "zmk,behavior-sensor-rotate";
label = "MSCRL";
#sensor-binding-cells = <0>;
bindings = <&msc MOVE_Y(40)>, <&msc MOVE_Y(-40)>;

tap-ms = <100>;
};
};

keymap {
compatible = "zmk,keymap";

default_layer {
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT
&kp TAB &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 FSLH &kp RSHFT
&kp UP &kp DOWN &kp X &kp LEFT &kp RIGHT
&kp LGUI &kp SPACE &kp DEL &kp BSPC &kp ENTER &kp LGUI
&kp LCTRL &kp LALT &mo 1
&kp LC(W) &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LG(L)
&kp RC(LG(LEFT)) &bml LWIN A &bml LALT S &bml LCTRL D &bml LSHFT F &kp G &kp H &bmr LSHFT J &bmr LCTRL K &bmr LALT L &bmr LWIN SEMI &kp RC(LG(RIGHT_ARROW))
&none &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp QUESTION &kp SQT
&kp HOME &kp PAGE_DOWN &kp LA(LEFT) &kp PAGE_UP &kp END
&kp ESCAPE &lt 1 TAB &lt 2 ENTER &lt 3 DEL &lt 4 BACKSPACE &lt 5 SPACE
&mkp RCLK &mkp LCLK &mkp MB3
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
sensor-bindings = <&mscrl>;
};

layer_1 {
bindings = <
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &mkp LCLK &mkp RCLK &kp N7 &kp N8 &kp N9 &kp BSPC
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &kp FSLH &kp N4 &kp N5 &kp N6 &kp MINUS
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &trans &kp TAB &kp N1 &kp N2 &kp N3 &kp PLUS
&trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
&trans &bootloader &trans
&none &none &none &none &none &none &kp SLASH &kp N7 &kp N8 &kp N9 &kp MINUS &none
&none &kp LWIN &kp LALT &kp LCTRL &kp LSHFT &none &kp LESS_THAN &kp N4 &kp N5 &kp N6 &kp PLUS &none
&none &none &none &none &none &none &kp GREATER_THAN &kp N1 &kp N2 &kp N3 &trans &none
&trans &trans &trans &kp N0 &kp EQUAL
&trans &trans &trans &trans &trans &trans
&trans &trans &trans
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
sensor-bindings = <&mscrl>;
};

layer_2 {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &kp UP &trans &trans &trans
&trans &trans &trans &trans &trans
&trans &trans &kp LEFT &kp DOWN &kp RIGHT &trans
&none &none &none &none &none &none &none &none &kp UP &none &none &none
&none &kp LWIN &kp LALT &kp LCTRL &kp LSHFT &none &kp CAPS &kp LEFT &kp DOWN &kp RIGHT &none &none
&none &none &none &none &none &none &none &none &none &none &none &none
&kp HOME &kp PG_DN &trans &kp PG_UP &kp END
&trans &trans &trans &trans &trans &trans
&trans &trans &trans
>;

sensor-bindings = <&mscrl>;
};

layer_3 {
bindings = <
&none &kp F12 &kp F7 &kp F8 &kp F9 &none &none &none &none &none &none &none
&none &kp F11 &kp F4 &kp F3 &kp F2 &none &none &kp LSHFT &kp LCTRL &kp LALT &kp LWIN &none
&none &kp F10 &kp F6 &kp F5 &kp F1 &none &none &none &none &none &none &none
&trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
&trans &trans &trans
>;

sensor-bindings = <&mscrl>;
};

layer_4 {
bindings = <
&kp GRAVE &kp LEFT_BRACE &kp AMPS &kp STAR &kp RIGHT_BRACE &kp TILDE &kp GRAVE &none &none &none &none &none
&kp CARET &kp LPAR &kp HASH &kp EXCL &kp RPAR &kp PRCNT &kp LESS_THAN &kp LSHFT &kp LCTRL &kp LALT &kp LWIN &none
&kp PIPE &kp LBKT &kp DOLLAR &kp AT &kp RBKT &kp BACKSLASH &kp GREATER_THAN &none &none &none &none &none
&trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
&trans &trans &trans
>;

sensor-bindings = <&mscrl>;
};

layer_5 {
bindings = <
&bootloader &none &none &none &none &none &none &none &none &none &none &bootloader
&none &kp K_PREV &kp K_VOL_UP &kp K_VOL_DN &kp K_NEXT &ext_power EP_TOG &none &kp LSHFT &kp LCTRL &kp LALT &kp LWIN &none
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &out OUT_TOG &none &none &none &none &none &none
&trans &trans &trans &trans &trans
&kp K_STOP &kp K_PP &kp K_MUTE &trans &trans &trans
&trans &trans &trans
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};
};
Expand Down