|
|
@ -22,21 +22,20 @@ An example of how to implement the mod-morph "Grave Escape": |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
/ { |
|
|
|
/ { |
|
|
|
behaviors { |
|
|
|
behaviors { |
|
|
|
gresc: grave_escape { |
|
|
|
gresc: grave_escape { |
|
|
|
compatible = "zmk,behavior-mod-morph"; |
|
|
|
compatible = "zmk,behavior-mod-morph"; |
|
|
|
label = "GRAVE_ESCAPE"; |
|
|
|
label = "GRAVE_ESCAPE"; |
|
|
|
#binding-cells = <0>; |
|
|
|
#binding-cells = <0>; |
|
|
|
bindings = <&kp ESC>, <&kp GRAVE>; |
|
|
|
bindings = <&kp ESC>, <&kp GRAVE>; |
|
|
|
mods = <(MOD_LGUI|MOD_LSFT|MOD_RGUI|MOD_RSFT)>; |
|
|
|
mods = <(MOD_LGUI|MOD_LSFT|MOD_RGUI|MOD_RSFT)>; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
keymap { |
|
|
|
keymap { |
|
|
|
... |
|
|
|
... |
|
|
|
} |
|
|
|
}; |
|
|
|
} |
|
|
|
}; |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
Note that this specific mod-morph exists in ZMK by default using code `&gresc`. |
|
|
|
Note that this specific mod-morph exists in ZMK by default using code `&gresc`. |
|
|
|