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:
parent
17fe99a8d4
commit
e85a6c7df0
4 changed files with 345 additions and 41 deletions
20
config/macros.dtsi
Normal file
20
config/macros.dtsi
Normal 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, ¯o_tap_time 1000 &kp C_POWER)
|
||||
Loading…
Add table
Add a link
Reference in a new issue