mirror of
https://github.com/CrispyPin/zmk-config.git
synced 2024-11-22 01:50:24 +01:00
add most symbols and maybe bluetooth battery
This commit is contained in:
parent
9711241a71
commit
356fd9690d
3 changed files with 22 additions and 42 deletions
|
@ -5,20 +5,22 @@ config ZMK_BLE
|
||||||
config ZMK_USB
|
config ZMK_USB
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config CONFIG_ZMK_BATTERY_NRF_VDDH
|
||||||
|
default y
|
||||||
|
|
||||||
if SHIELD_LEKO_PONA_LEFT
|
if SHIELD_LEKO_PONA_LEFT
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "leko pona 1"
|
default "leko pona 1"
|
||||||
|
|
||||||
config ZMK_SPLIT_ROLE_CENTRAL
|
config ZMK_SPLIT_ROLE_CENTRAL
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_LEKO_PONA_LEFT || SHIELD_LEKO_PONA_RIGHT
|
if SHIELD_LEKO_PONA_LEFT || SHIELD_LEKO_PONA_RIGHT
|
||||||
|
|
||||||
config ZMK_SPLIT
|
config ZMK_SPLIT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif
|
endif
|
|
@ -1,5 +1,16 @@
|
||||||
#include <dt-bindings/zmk/matrix_transform.h>
|
#include <dt-bindings/zmk/matrix_transform.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zmk,battery = &vbatt;
|
||||||
|
};
|
||||||
|
|
||||||
|
vbatt: vbatt {
|
||||||
|
compatible = "zmk,battery-nrf-vddh";
|
||||||
|
label = "VBATT";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
chosen {
|
chosen {
|
||||||
zmk,kscan = &kscan0;
|
zmk,kscan = &kscan0;
|
||||||
|
|
|
@ -15,40 +15,6 @@
|
||||||
|
|
||||||
ZMK_UNICODE_SINGLE(multi_o, A, N6, N6, E) // multiocular o
|
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 {
|
keymap {
|
||||||
compatible = "zmk,keymap";
|
compatible = "zmk,keymap";
|
||||||
|
@ -63,11 +29,12 @@ ZMK_UNICODE_SINGLE(multi_o, A, N6, N6, E) // multiocular o
|
||||||
// numbers + symbols + non english letters
|
// numbers + symbols + non english letters
|
||||||
layer_1 {
|
layer_1 {
|
||||||
bindings = <
|
bindings = <
|
||||||
&kp TAB &none &none &none &none &none &sv_ao &sv_ae &sv_oe &kp DEL
|
&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
|
&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 &kp SQT &kp SLASH &kp BSLH &kp EQUAL &kp MINUS &kp SEMI &kp COMMA &kp DOT &trans
|
||||||
&trans &trans &trans &mo L3 &trans &trans
|
&trans &trans &trans &mo L3 &trans &trans
|
||||||
>;
|
>;
|
||||||
|
// ' " / ? \ | = + - _ ; : , < . >
|
||||||
};
|
};
|
||||||
// F keys + navigation
|
// F keys + navigation
|
||||||
layer_2 {
|
layer_2 {
|
||||||
|
@ -82,7 +49,7 @@ ZMK_UNICODE_SINGLE(multi_o, A, N6, N6, E) // multiocular o
|
||||||
layer_3 {
|
layer_3 {
|
||||||
bindings = <
|
bindings = <
|
||||||
&trans &none &none &tog GAME &tog TOKI &kp C_BRI_UP &kp C_PREV &kp C_NEXT &kp C_VOL_UP &trans
|
&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 &none &bt BT_SEL 0 &bt BT_NXT &bt BT_CLR &none &none &none &none &trans
|
||||||
&trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
|
|
Loading…
Reference in a new issue