add most symbols and maybe bluetooth battery

This commit is contained in:
Crispy 2022-10-02 21:23:44 +02:00
parent 9711241a71
commit 356fd9690d
3 changed files with 22 additions and 42 deletions

View file

@ -5,20 +5,22 @@ config ZMK_BLE
config ZMK_USB
default y
config CONFIG_ZMK_BATTERY_NRF_VDDH
default y
if SHIELD_LEKO_PONA_LEFT
config ZMK_KEYBOARD_NAME
default "leko pona 1"
default "leko pona 1"
config ZMK_SPLIT_ROLE_CENTRAL
default y
default y
endif
if SHIELD_LEKO_PONA_LEFT || SHIELD_LEKO_PONA_RIGHT
config ZMK_SPLIT
default y
default y
endif

View file

@ -1,5 +1,16 @@
#include <dt-bindings/zmk/matrix_transform.h>
/ {
chosen {
zmk,battery = &vbatt;
};
vbatt: vbatt {
compatible = "zmk,battery-nrf-vddh";
label = "VBATT";
};
}
/ {
chosen {
zmk,kscan = &kscan0;

View file

@ -15,40 +15,6 @@
ZMK_UNICODE_SINGLE(multi_o, A, N6, N6, E) // multiocular o
/ {
behaviors {
// characters with logical inverses, assigned to shift
iminus: i_minus_plus {
compatible = "zmk,behavior-mod-morph";
label = "- +";
#binding-cells = <0>;
bindings = <&kp MINUS>, <&kp PLUS>;
mods = <(MOD_LSFT)>;
};
iunder: i_underscore_pipe {
compatible = "zmk,behavior-mod-morph";
label = "_ |";
#binding-cells = <0>;
bindings = <&kp UNDER>, <&kp PIPE>;
mods = <(MOD_LSFT)>;
};
idot: i_dot_colon {
compatible = "zmk,behavior-mod-morph";
label = ". :";
#binding-cells = <0>;
bindings = <&kp DOT>, <&kp COLON>;
mods = <(MOD_LSFT)>;
};
icomma: i_comma_semicolon {
compatible = "zmk,behavior-mod-morph";
label = ", ;";
#binding-cells = <0>;
bindings = <&kp COMMA>, <&kp SEMICOLON>;
mods = <(MOD_LSFT)>;
};
};
};
/ {
keymap {
compatible = "zmk,keymap";
@ -63,11 +29,12 @@ ZMK_UNICODE_SINGLE(multi_o, A, N6, N6, E) // multiocular o
// numbers + symbols + non english letters
layer_1 {
bindings = <
&kp TAB &none &none &none &none &none &sv_ao &sv_ae &sv_oe &kp DEL
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
&trans &none &none &none &none &iunder &iminus &icomma &idot &trans
&trans &trans &trans &mo L3 &trans &trans
&kp TAB &kp GRAVE &kp LBKT &kp RBKT &kp DOLLAR &none &sv_ao &sv_ae &sv_oe &kp DEL
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
&trans &kp SQT &kp SLASH &kp BSLH &kp EQUAL &kp MINUS &kp SEMI &kp COMMA &kp DOT &trans
&trans &trans &trans &mo L3 &trans &trans
>;
// ' " / ? \ | = + - _ ; : , < . >
};
// F keys + navigation
layer_2 {
@ -82,7 +49,7 @@ ZMK_UNICODE_SINGLE(multi_o, A, N6, N6, E) // multiocular o
layer_3 {
bindings = <
&trans &none &none &tog GAME &tog TOKI &kp C_BRI_UP &kp C_PREV &kp C_NEXT &kp C_VOL_UP &trans
&none &none &none &none &none &kp C_BRI_DN &kp C_PLAY &kp C_PAUSE &kp C_VOL_DN &multi_o
&none &none &none &none &none &kp C_BRI_DN &kp C_PLAY &kp C_STOP &kp C_VOL_DN &multi_o
&trans &none &bt BT_SEL 0 &bt BT_NXT &bt BT_CLR &none &none &none &none &trans
&trans &trans &trans &trans &trans &trans
>;