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,6 +5,8 @@ config ZMK_BLE
|
|||
config ZMK_USB
|
||||
default y
|
||||
|
||||
config CONFIG_ZMK_BATTERY_NRF_VDDH
|
||||
default y
|
||||
|
||||
if SHIELD_LEKO_PONA_LEFT
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 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 &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
|
||||
>;
|
||||
// ' " / ? \ | = + - _ ; : , < . >
|
||||
};
|
||||
// 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
|
||||
>;
|
||||
|
|
Loading…
Reference in a new issue