test de #include "keymap_german_mac_iso.h" defini una nueva libreria de teclas estilo qmk para el teclado aleman

This commit is contained in:
Chow Castro, Marcos 2022-09-19 15:28:09 +02:00
parent 17fe99a8d4
commit e85a6c7df0
4 changed files with 345 additions and 41 deletions

20
config/macros.dtsi Normal file
View file

@ -0,0 +1,20 @@
/* TODO: en adptacion */
/* Macro macro: */
#define str(s) #s
#define MACRO(NAME, BINDINGS) \
macro_##NAME: macro_##NAME { \
compatible = "zmk,behavior-macro"; \
label = str(macro_##NAME); \
#binding-cells = <0>; \
wait-ms = <30>; \
tap-ms = <40>; \
bindings = <BINDINGS>; \
};
/* Brackets */
MACRO(parentheses, &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &kp LEFT)
MACRO(brackets, &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp LEFT)
MACRO(ltgt, &kp LESS_THAN &kp GREATER_THAN &kp LEFT)
/* Suspend macOS by holding power key for 1 second */
MACRO(power, &macro_tap_time 1000 &kp C_POWER)