forked from kofal.net/zmk
Added physical layouts for the following variants of numpads: - With and without extra top row - 2U plus key or 1U plus and backspace keys - 2U 0 key or 1U 0 and 00 keys - Full 1U grid/macropad layout Other layouts exist, such as "southpaw" horizontally mirrored layouts, and layouts with a fifth column, but those seem to be much less common.
44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
#include <layouts/common/numpad/position_map.dtsi>
|
|
#include <physical_layouts.dtsi>
|
|
|
|
/ {
|
|
layout_numpad_17_key: layout_numpad_17_key {
|
|
compatible = "zmk,physical-layout";
|
|
display-name = "17 Key Numpad";
|
|
|
|
keys // w h x y rot rx ry
|
|
= <&key_physical_attrs 100 100 0 0 0 0 0>
|
|
, <&key_physical_attrs 100 100 100 0 0 0 0>
|
|
, <&key_physical_attrs 100 100 200 0 0 0 0>
|
|
, <&key_physical_attrs 100 100 300 0 0 0 0>
|
|
, <&key_physical_attrs 100 100 0 100 0 0 0>
|
|
, <&key_physical_attrs 100 100 100 100 0 0 0>
|
|
, <&key_physical_attrs 100 100 200 100 0 0 0>
|
|
, <&key_physical_attrs 100 200 300 100 0 0 0>
|
|
, <&key_physical_attrs 100 100 0 200 0 0 0>
|
|
, <&key_physical_attrs 100 100 100 200 0 0 0>
|
|
, <&key_physical_attrs 100 100 200 200 0 0 0>
|
|
, <&key_physical_attrs 100 100 0 300 0 0 0>
|
|
, <&key_physical_attrs 100 100 100 300 0 0 0>
|
|
, <&key_physical_attrs 100 100 200 300 0 0 0>
|
|
, <&key_physical_attrs 100 200 300 300 0 0 0>
|
|
, <&key_physical_attrs 200 100 0 400 0 0 0>
|
|
, <&key_physical_attrs 100 100 200 400 0 0 0>
|
|
;
|
|
};
|
|
};
|
|
|
|
&layouts_common_numpad_position_map {
|
|
layout_numpad_17_key {
|
|
physical-layout = <&layout_numpad_17_key>;
|
|
positions
|
|
= <17 18 19 20>
|
|
, < 0 1 2 3>
|
|
, < 4 5 6 7>
|
|
, < 8 9 10 21>
|
|
, <11 12 13 14>
|
|
, <15 22 16 23>
|
|
;
|
|
};
|
|
};
|