Finalize artsey v0.7 implementation, update example board
This commit is contained in:
parent
d257059c4a
commit
dad18aa55a
|
@ -58,7 +58,9 @@
|
|||
#define LAYER_ID_SYMBOLS 2
|
||||
#define LAYER_ID_PARENTHETICALS 3
|
||||
#define LAYER_ID_NAVIGATION 4
|
||||
#define LAYER_ID_MOUSE 5
|
||||
#define LAYER_ID_F_ONE_SIX 5
|
||||
#define LAYER_ID_F_SEVEN_TWELVE 6
|
||||
#define LAYER_ID_MOUSE 7
|
||||
|
||||
/*****************************************
|
||||
* Define how long it takes for the chords/holds to 'time out'
|
||||
|
@ -66,6 +68,12 @@
|
|||
*****************************************/
|
||||
#define TIMEOUT_CHORD 125
|
||||
#define TIMEOUT_LAYER_HOLD 250
|
||||
&sk {
|
||||
release-after-ms = <1000>;
|
||||
};
|
||||
&sl {
|
||||
release-after-ms = <2000>;
|
||||
};
|
||||
|
||||
/*****************************************
|
||||
* Standard ARTSEY chord definitions
|
||||
|
@ -127,36 +135,54 @@
|
|||
layer_base_kp: layer_base_kp { compatible = "zmk,behavior-hold-tap"; label = "layer_base_kp";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&kp>; };
|
||||
layer_base_sl: layer_base_sl { compatible = "zmk,behavior-hold-tap"; label = "layer_base_sl";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&sl>; };
|
||||
layer_numbers_none: layer_numbers_none { compatible = "zmk,behavior-hold-tap"; label = "layer_numbers_none";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "hold-preferred";
|
||||
bindings = <&to>, <&none>; };
|
||||
layer_numbers_kp: layer_numbers_kp { compatible = "zmk,behavior-hold-tap"; label = "layer_numbers_kp";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&kp>; };
|
||||
layer_numbers_sl: layer_numbers_sl { compatible = "zmk,behavior-hold-tap"; label = "layer_numbers_sl";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&sl>; };
|
||||
layer_symbols_none: layer_symbols_none { compatible = "zmk,behavior-hold-tap"; label = "layer_symbols_none";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "hold-preferred";
|
||||
bindings = <&to>, <&none>; };
|
||||
layer_symbols_kp: layer_symbols_kp { compatible = "zmk,behavior-hold-tap"; label = "layer_symbols_kp";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&kp>; };
|
||||
layer_symbols_sl: layer_symbols_sl { compatible = "zmk,behavior-hold-tap"; label = "layer_symbols_sl";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&sl>; };
|
||||
layer_parentheticals_none: layer_parentheticals_none { compatible = "zmk,behavior-hold-tap"; label = "layer_parentheticals_none";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "hold-preferred";
|
||||
bindings = <&to>, <&none>; };
|
||||
layer_parentheticals_kp: layer_parentheticals_kp { compatible = "zmk,behavior-hold-tap"; label = "layer_parentheticals_kp";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&kp>; };
|
||||
layer_parentheticals_sl: layer_parentheticals_sl { compatible = "zmk,behavior-hold-tap"; label = "layer_parentheticals_sl";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&sl>; };
|
||||
layer_navigation_none: layer_navigation_none { compatible = "zmk,behavior-hold-tap"; label = "layer_navigation_none";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "hold-preferred";
|
||||
bindings = <&to>, <&none>; };
|
||||
layer_navigation_kp: layer_navigation_kp { compatible = "zmk,behavior-hold-tap"; label = "layer_navigation_kp";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&kp>; };
|
||||
layer_navigation_sl: layer_navigation_sl { compatible = "zmk,behavior-hold-tap"; label = "layer_navigation_sl";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&to>, <&sl>; };
|
||||
layer_mouse_none: layer_mouse_none { compatible = "zmk,behavior-hold-tap"; label = "layer_mouse_none";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "hold-preferred";
|
||||
bindings = <&tog>, <&none>; };
|
||||
layer_mouse_kp: layer_mouse_kp { compatible = "zmk,behavior-hold-tap"; label = "layer_mouse_kp";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&tog>, <&kp>; };
|
||||
layer_mouse_sl: layer_mouse_sl { compatible = "zmk,behavior-hold-tap"; label = "layer_mouse_sl";
|
||||
#binding-cells = <2>; tapping_term_ms = <TIMEOUT_LAYER_HOLD>; flavor = "tap-preferred";
|
||||
bindings = <&tog>, <&sl>; };
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -168,47 +194,61 @@
|
|||
*****************************************/
|
||||
// / {
|
||||
// keymap {
|
||||
// compatible = "zmk,keymap";
|
||||
// base {
|
||||
// label = "Base";
|
||||
// bindings = <
|
||||
// compatible = "zmk,keymap";
|
||||
// base {
|
||||
// label = "Base";
|
||||
// bindings = <
|
||||
// &layer_parentheticals_kp LAYER_ID_PARENTHETICALS A &kp R &kp T &layer_numbers_kp LAYER_ID_NUMBERS S
|
||||
// &layer_symbols_kp LAYER_ID_SYMBOLS E &kp Y &kp I &layer_navigation_kp LAYER_ID_NAVIGATION O
|
||||
// >;
|
||||
// };
|
||||
// >;
|
||||
// };
|
||||
// numbers {
|
||||
// label = "Numbers";
|
||||
// bindings = < /* TODO: NEED TO SETUP Fn LEADER KEY(S) */
|
||||
// &layer_parentheticals_kp LAYER_ID_PARENTHETICALS N1 &kp N2 &kp N3 &layer_base_none LAYER_ID_BASE 0
|
||||
// &layer_symbols_kp LAYER_ID_SYMBOLS N4 &kp N5 &kp N6 &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||
// >;
|
||||
// };
|
||||
// label = "Numbers";
|
||||
// bindings = < /* TODO: NEED TO SETUP Fn LEADER KEY(S) */
|
||||
// &layer_parentheticals_kp LAYER_ID_PARENTHETICALS N1 &kp N2 &kp N3 &layer_base_sl LAYER_ID_BASE LAYER_ID_F_ONE_SIX
|
||||
// &layer_symbols_kp LAYER_ID_SYMBOLS N4 &kp N5 &kp N6 &layer_navigation_sl LAYER_ID_NAVIGATION LAYER_ID_F_SEVEN_TWELVE
|
||||
// >;
|
||||
// };
|
||||
// symbols {
|
||||
// label = "Symbols";
|
||||
// bindings = <
|
||||
// label = "Symbols";
|
||||
// bindings = <
|
||||
// &layer_parentheticals_none LAYER_ID_PARENTHETICALS 0 &kp BSLH &kp SEMI &layer_numbers_kp LAYER_ID_NUMBERS GRAVE
|
||||
// &layer_base_none LAYER_ID_BASE 0 &kp MINUS &kp EQUAL &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||
// >;
|
||||
// };
|
||||
// >;
|
||||
// };
|
||||
// parentheticals {
|
||||
// label = "Paren";
|
||||
// bindings = <
|
||||
// label = "Paren";
|
||||
// bindings = <
|
||||
// &layer_base_none LAYER_ID_BASE 0 &kp LPAR &kp RPAR &layer_numbers_kp LAYER_ID_NUMBERS LBRC
|
||||
// &layer_symbols_none LAYER_ID_SYMBOLS 0 &kp LBKT &kp RBKT &layer_navigation_kp LAYER_ID_NAVIGATION RBRC
|
||||
// >;
|
||||
// };
|
||||
// >;
|
||||
// };
|
||||
// navigation {
|
||||
// label = "Nav";
|
||||
// bindings = <
|
||||
// label = "Nav";
|
||||
// bindings = <
|
||||
// &layer_parentheticals_kp LAYER_ID_PARENTHETICALS HOME &kp UP &kp END &layer_numbers_none LAYER_ID_NUMBERS 0
|
||||
// &layer_symbols_kp LAYER_ID_SYMBOLS LEFT &kp DOWN &kp RIGHT &layer_base_none LAYER_ID_BASE 0
|
||||
// >;
|
||||
// };
|
||||
// >;
|
||||
// };
|
||||
// f_one_to_six{
|
||||
// label = "F1-F6";
|
||||
// bindings = <
|
||||
// &layer_parentheticals_kp LAYER_ID_PARENTHETICALS F1 &kp F2 &kp F3 &layer_numbers_none LAYER_ID_NUMBERS 0
|
||||
// &layer_symbols_kp LAYER_ID_SYMBOLS F4 &kp F5 &kp F6 &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||
// >;
|
||||
// };
|
||||
// f_seven_to_twelve {
|
||||
// label = "F7-F12";
|
||||
// bindings = <
|
||||
// &layer_parentheticals_kp LAYER_ID_PARENTHETICALS F7 &kp F8 &kp F9 &layer_numbers_none LAYER_ID_NUMBERS 0
|
||||
// &layer_symbols_kp LAYER_ID_SYMBOLS F10 &kp N11 &kp F12 &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||
// >;
|
||||
// };
|
||||
// mouse { /* TODO: Not implemented yet, needs mouse keys in upstream */
|
||||
// label = "Mouse";
|
||||
// bindings = <
|
||||
// label = "Mouse";
|
||||
// bindings = <
|
||||
// &none &none &none &none
|
||||
// &none &none &none &none
|
||||
// >;
|
||||
// };
|
||||
// >;
|
||||
// };
|
||||
// };
|
||||
|
|
|
@ -22,56 +22,76 @@
|
|||
|
||||
/ {
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
base {
|
||||
label = "Base";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
compatible = "zmk,keymap";
|
||||
base {
|
||||
label = "Base";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS A &kp R &kp T &layer_numbers_kp LAYER_ID_NUMBERS S
|
||||
&none &none
|
||||
&none &none
|
||||
&layer_symbols_kp LAYER_ID_SYMBOLS E &kp Y &kp I &layer_navigation_kp LAYER_ID_NAVIGATION O
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
>;
|
||||
};
|
||||
numbers {
|
||||
label = "Numbers";
|
||||
bindings = < /* TODO: NEED TO SETUP Fn LEADER KEY(S) */
|
||||
&none &none &none &none &none &none &none
|
||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS N1 &kp N2 &kp N3 &layer_base_none LAYER_ID_BASE 0
|
||||
&none &none
|
||||
&layer_symbols_kp LAYER_ID_SYMBOLS N4 &kp N5 &kp N6 &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
label = "Numbers";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS N1 &kp N2 &kp N3 &layer_base_sl LAYER_ID_BASE LAYER_ID_F_ONE_SIX
|
||||
&none &none
|
||||
&layer_symbols_kp LAYER_ID_SYMBOLS N4 &kp N5 &kp N6 &layer_navigation_sl LAYER_ID_NAVIGATION LAYER_ID_F_SEVEN_TWELVE
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
symbols {
|
||||
label = "Symbols";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
label = "Symbols";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
&layer_parentheticals_none LAYER_ID_PARENTHETICALS 0 &kp BSLH &kp SEMI &layer_numbers_kp LAYER_ID_NUMBERS GRAVE
|
||||
&none &none
|
||||
&none &none
|
||||
&layer_base_none LAYER_ID_BASE 0 &kp MINUS &kp EQUAL &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
parentheticals {
|
||||
label = "Paren";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
label = "Paren";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
&layer_base_none LAYER_ID_BASE 0 &kp LPAR &kp RPAR &layer_numbers_kp LAYER_ID_NUMBERS LBRC
|
||||
&none &none
|
||||
&none &none
|
||||
&layer_symbols_none LAYER_ID_SYMBOLS 0 &kp LBKT &kp RBKT &layer_navigation_kp LAYER_ID_NAVIGATION RBRC
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
navigation {
|
||||
label = "Nav";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
label = "Nav";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS HOME &kp UP &kp END &layer_numbers_none LAYER_ID_NUMBERS 0
|
||||
&none &none
|
||||
&none &none
|
||||
&layer_symbols_kp LAYER_ID_SYMBOLS LEFT &kp DOWN &kp RIGHT &layer_base_none LAYER_ID_BASE 0
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
};
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
f_one_to_six{
|
||||
label = "F1-F6";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS F1 &kp F2 &kp F3 &layer_numbers_none LAYER_ID_NUMBERS 0
|
||||
&none &none
|
||||
&layer_symbols_kp LAYER_ID_SYMBOLS F4 &kp F5 &kp F6 &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
f_seven_to_twelve {
|
||||
label = "F7-F12";
|
||||
bindings = <
|
||||
&none &none &none &none &none &none &none
|
||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS F7 &kp F8 &kp F9 &layer_numbers_none LAYER_ID_NUMBERS 0
|
||||
&none &none
|
||||
&layer_symbols_kp LAYER_ID_SYMBOLS F10 &kp F11 &kp F12 &layer_navigation_none LAYER_ID_NAVIGATION 0
|
||||
&none &none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue