aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/boards/shields/corne/corne.dtsi3
-rw-r--r--app/boards/shields/splitkb_aurora_corne/splitkb_aurora_corne.dtsi3
-rw-r--r--app/dts/layouts/foostan/corne.dtsi121
-rw-r--r--app/dts/layouts/foostan/corne/5column.dtsi59
-rw-r--r--app/dts/layouts/foostan/corne/6column.dtsi65
-rw-r--r--app/dts/layouts/foostan/corne/position_map.dtsi7
6 files changed, 135 insertions, 123 deletions
diff --git a/app/boards/shields/corne/corne.dtsi b/app/boards/shields/corne/corne.dtsi
index e4339e617d..e1dcc058b7 100644
--- a/app/boards/shields/corne/corne.dtsi
+++ b/app/boards/shields/corne/corne.dtsi
@@ -6,7 +6,8 @@
#include <dt-bindings/zmk/matrix_transform.h>
-#include <layouts/foostan/corne.dtsi>
+#include <layouts/foostan/corne/5column.dtsi>
+#include <layouts/foostan/corne/6column.dtsi>
&foostan_corne_6col_layout {
transform = <&default_transform>;
diff --git a/app/boards/shields/splitkb_aurora_corne/splitkb_aurora_corne.dtsi b/app/boards/shields/splitkb_aurora_corne/splitkb_aurora_corne.dtsi
index 0b0ffdf357..f57cd2355a 100644
--- a/app/boards/shields/splitkb_aurora_corne/splitkb_aurora_corne.dtsi
+++ b/app/boards/shields/splitkb_aurora_corne/splitkb_aurora_corne.dtsi
@@ -6,7 +6,8 @@
#include <dt-bindings/zmk/matrix_transform.h>
-#include <layouts/foostan/corne.dtsi>
+#include <layouts/foostan/corne/5column.dtsi>
+#include <layouts/foostan/corne/6column.dtsi>
&foostan_corne_6col_layout {
transform = <&default_transform>;
diff --git a/app/dts/layouts/foostan/corne.dtsi b/app/dts/layouts/foostan/corne.dtsi
deleted file mode 100644
index 5a644103e0..0000000000
--- a/app/dts/layouts/foostan/corne.dtsi
+++ /dev/null
@@ -1,121 +0,0 @@
-#include <physical_layouts.dtsi>
-
-/ {
- foostan_corne_6col_layout: foostan_corne_6col_layout {
- compatible = "zmk,physical-layout";
- display-name = "6 Column";
-
- keys // w h x y rot rx ry
- = <&key_physical_attrs 100 100 0 37 0 0 0>
- , <&key_physical_attrs 100 100 100 37 0 0 0>
- , <&key_physical_attrs 100 100 200 12 0 0 0>
- , <&key_physical_attrs 100 100 300 0 0 0 0>
- , <&key_physical_attrs 100 100 400 12 0 0 0>
- , <&key_physical_attrs 100 100 500 24 0 0 0>
- , <&key_physical_attrs 100 100 800 24 0 0 0>
- , <&key_physical_attrs 100 100 900 12 0 0 0>
- , <&key_physical_attrs 100 100 1000 0 0 0 0>
- , <&key_physical_attrs 100 100 1100 12 0 0 0>
- , <&key_physical_attrs 100 100 1200 37 0 0 0>
- , <&key_physical_attrs 100 100 1300 37 0 0 0>
- , <&key_physical_attrs 100 100 0 137 0 0 0>
- , <&key_physical_attrs 100 100 100 137 0 0 0>
- , <&key_physical_attrs 100 100 200 112 0 0 0>
- , <&key_physical_attrs 100 100 300 100 0 0 0>
- , <&key_physical_attrs 100 100 400 112 0 0 0>
- , <&key_physical_attrs 100 100 500 124 0 0 0>
- , <&key_physical_attrs 100 100 800 124 0 0 0>
- , <&key_physical_attrs 100 100 900 112 0 0 0>
- , <&key_physical_attrs 100 100 1000 100 0 0 0>
- , <&key_physical_attrs 100 100 1100 112 0 0 0>
- , <&key_physical_attrs 100 100 1200 137 0 0 0>
- , <&key_physical_attrs 100 100 1300 137 0 0 0>
- , <&key_physical_attrs 100 100 0 237 0 0 0>
- , <&key_physical_attrs 100 100 100 237 0 0 0>
- , <&key_physical_attrs 100 100 200 212 0 0 0>
- , <&key_physical_attrs 100 100 300 200 0 0 0>
- , <&key_physical_attrs 100 100 400 212 0 0 0>
- , <&key_physical_attrs 100 100 500 224 0 0 0>
- , <&key_physical_attrs 100 100 800 224 0 0 0>
- , <&key_physical_attrs 100 100 900 212 0 0 0>
- , <&key_physical_attrs 100 100 1000 200 0 0 0>
- , <&key_physical_attrs 100 100 1100 212 0 0 0>
- , <&key_physical_attrs 100 100 1200 237 0 0 0>
- , <&key_physical_attrs 100 100 1300 237 0 0 0>
- , <&key_physical_attrs 100 100 350 312 0 0 0>
- , <&key_physical_attrs 100 100 450 312 1200 450 412>
- , <&key_physical_attrs 100 150 548 283 2400 548 433>
- , <&key_physical_attrs 100 150 752 283 (-2400) 852 433>
- , <&key_physical_attrs 100 100 850 312 (-1200) 950 412>
- , <&key_physical_attrs 100 100 950 312 0 0 0>
- ;
- };
-
- foostan_corne_5col_layout: foostan_corne_5col_layout {
- compatible = "zmk,physical-layout";
- display-name = "5 Column";
-
- keys // w h x y rot rx ry
- = <&key_physical_attrs 100 100 0 37 0 0 0>
- , <&key_physical_attrs 100 100 100 12 0 0 0>
- , <&key_physical_attrs 100 100 200 0 0 0 0>
- , <&key_physical_attrs 100 100 300 12 0 0 0>
- , <&key_physical_attrs 100 100 400 24 0 0 0>
- , <&key_physical_attrs 100 100 700 24 0 0 0>
- , <&key_physical_attrs 100 100 800 12 0 0 0>
- , <&key_physical_attrs 100 100 900 0 0 0 0>
- , <&key_physical_attrs 100 100 1000 12 0 0 0>
- , <&key_physical_attrs 100 100 1100 37 0 0 0>
- , <&key_physical_attrs 100 100 0 137 0 0 0>
- , <&key_physical_attrs 100 100 100 112 0 0 0>
- , <&key_physical_attrs 100 100 200 100 0 0 0>
- , <&key_physical_attrs 100 100 300 112 0 0 0>
- , <&key_physical_attrs 100 100 400 124 0 0 0>
- , <&key_physical_attrs 100 100 700 124 0 0 0>
- , <&key_physical_attrs 100 100 800 112 0 0 0>
- , <&key_physical_attrs 100 100 900 100 0 0 0>
- , <&key_physical_attrs 100 100 1000 112 0 0 0>
- , <&key_physical_attrs 100 100 1100 137 0 0 0>
- , <&key_physical_attrs 100 100 0 237 0 0 0>
- , <&key_physical_attrs 100 100 100 212 0 0 0>
- , <&key_physical_attrs 100 100 200 200 0 0 0>
- , <&key_physical_attrs 100 100 300 212 0 0 0>
- , <&key_physical_attrs 100 100 400 224 0 0 0>
- , <&key_physical_attrs 100 100 700 224 0 0 0>
- , <&key_physical_attrs 100 100 800 212 0 0 0>
- , <&key_physical_attrs 100 100 900 200 0 0 0>
- , <&key_physical_attrs 100 100 1000 212 0 0 0>
- , <&key_physical_attrs 100 100 1100 237 0 0 0>
- , <&key_physical_attrs 100 100 250 312 0 0 0>
- , <&key_physical_attrs 100 100 350 312 1200 350 412>
- , <&key_physical_attrs 100 150 448 283 2400 448 433>
- , <&key_physical_attrs 100 150 652 283 (-2400) 752 433>
- , <&key_physical_attrs 100 100 750 312 (-1200) 850 412>
- , <&key_physical_attrs 100 100 850 312 0 0 0>
- ;
- };
-
- foostan_corne_position_map {
- compatible = "zmk,physical-layout-position-map";
-
- complete;
-
- twelve {
- physical-layout = <&foostan_corne_6col_layout>;
- positions
- = < 0 1 2 3 4 5 6 7 8 9 10 11>
- , <12 13 14 15 16 17 18 19 20 21 22 23>
- , <24 25 26 27 28 29 30 31 32 33 34 35>
- , < 36 37 38 39 40 41 >;
- };
-
- ten {
- physical-layout = <&foostan_corne_5col_layout>;
- positions
- = <36 0 1 2 3 4 5 6 7 8 9 37>
- , <38 10 11 12 13 14 15 16 17 18 19 39>
- , <40 20 21 22 23 24 25 26 27 28 29 41>
- , < 30 31 32 33 34 35 >;
- };
- };
-};
diff --git a/app/dts/layouts/foostan/corne/5column.dtsi b/app/dts/layouts/foostan/corne/5column.dtsi
new file mode 100644
index 0000000000..2d96d0b262
--- /dev/null
+++ b/app/dts/layouts/foostan/corne/5column.dtsi
@@ -0,0 +1,59 @@
+#include <layouts/foostan/corne/position_map.dtsi>
+#include <physical_layouts.dtsi>
+
+/ {
+ foostan_corne_5col_layout: foostan_corne_5col_layout {
+ compatible = "zmk,physical-layout";
+ display-name = "5 Column";
+
+ keys // w h x y rot rx ry
+ = <&key_physical_attrs 100 100 0 37 0 0 0>
+ , <&key_physical_attrs 100 100 100 12 0 0 0>
+ , <&key_physical_attrs 100 100 200 0 0 0 0>
+ , <&key_physical_attrs 100 100 300 12 0 0 0>
+ , <&key_physical_attrs 100 100 400 24 0 0 0>
+ , <&key_physical_attrs 100 100 700 24 0 0 0>
+ , <&key_physical_attrs 100 100 800 12 0 0 0>
+ , <&key_physical_attrs 100 100 900 0 0 0 0>
+ , <&key_physical_attrs 100 100 1000 12 0 0 0>
+ , <&key_physical_attrs 100 100 1100 37 0 0 0>
+ , <&key_physical_attrs 100 100 0 137 0 0 0>
+ , <&key_physical_attrs 100 100 100 112 0 0 0>
+ , <&key_physical_attrs 100 100 200 100 0 0 0>
+ , <&key_physical_attrs 100 100 300 112 0 0 0>
+ , <&key_physical_attrs 100 100 400 124 0 0 0>
+ , <&key_physical_attrs 100 100 700 124 0 0 0>
+ , <&key_physical_attrs 100 100 800 112 0 0 0>
+ , <&key_physical_attrs 100 100 900 100 0 0 0>
+ , <&key_physical_attrs 100 100 1000 112 0 0 0>
+ , <&key_physical_attrs 100 100 1100 137 0 0 0>
+ , <&key_physical_attrs 100 100 0 237 0 0 0>
+ , <&key_physical_attrs 100 100 100 212 0 0 0>
+ , <&key_physical_attrs 100 100 200 200 0 0 0>
+ , <&key_physical_attrs 100 100 300 212 0 0 0>
+ , <&key_physical_attrs 100 100 400 224 0 0 0>
+ , <&key_physical_attrs 100 100 700 224 0 0 0>
+ , <&key_physical_attrs 100 100 800 212 0 0 0>
+ , <&key_physical_attrs 100 100 900 200 0 0 0>
+ , <&key_physical_attrs 100 100 1000 212 0 0 0>
+ , <&key_physical_attrs 100 100 1100 237 0 0 0>
+ , <&key_physical_attrs 100 100 250 312 0 0 0>
+ , <&key_physical_attrs 100 100 350 312 1200 350 412>
+ , <&key_physical_attrs 100 150 448 283 2400 448 433>
+ , <&key_physical_attrs 100 150 652 283 (-2400) 752 433>
+ , <&key_physical_attrs 100 100 750 312 (-1200) 850 412>
+ , <&key_physical_attrs 100 100 850 312 0 0 0>
+ ;
+ };
+};
+
+&layouts_foostan_corne_position_map {
+ five_column {
+ physical-layout = <&foostan_corne_5col_layout>;
+ positions
+ = <36 0 1 2 3 4 5 6 7 8 9 37>
+ , <38 10 11 12 13 14 15 16 17 18 19 39>
+ , <40 20 21 22 23 24 25 26 27 28 29 41>
+ , < 30 31 32 33 34 35 >;
+ };
+};
diff --git a/app/dts/layouts/foostan/corne/6column.dtsi b/app/dts/layouts/foostan/corne/6column.dtsi
new file mode 100644
index 0000000000..bc1a196d53
--- /dev/null
+++ b/app/dts/layouts/foostan/corne/6column.dtsi
@@ -0,0 +1,65 @@
+#include <layouts/foostan/corne/position_map.dtsi>
+#include <physical_layouts.dtsi>
+
+/ {
+ foostan_corne_6col_layout: foostan_corne_6col_layout {
+ compatible = "zmk,physical-layout";
+ display-name = "6 Column";
+
+ keys // w h x y rot rx ry
+ = <&key_physical_attrs 100 100 0 37 0 0 0>
+ , <&key_physical_attrs 100 100 100 37 0 0 0>
+ , <&key_physical_attrs 100 100 200 12 0 0 0>
+ , <&key_physical_attrs 100 100 300 0 0 0 0>
+ , <&key_physical_attrs 100 100 400 12 0 0 0>
+ , <&key_physical_attrs 100 100 500 24 0 0 0>
+ , <&key_physical_attrs 100 100 800 24 0 0 0>
+ , <&key_physical_attrs 100 100 900 12 0 0 0>
+ , <&key_physical_attrs 100 100 1000 0 0 0 0>
+ , <&key_physical_attrs 100 100 1100 12 0 0 0>
+ , <&key_physical_attrs 100 100 1200 37 0 0 0>
+ , <&key_physical_attrs 100 100 1300 37 0 0 0>
+ , <&key_physical_attrs 100 100 0 137 0 0 0>
+ , <&key_physical_attrs 100 100 100 137 0 0 0>
+ , <&key_physical_attrs 100 100 200 112 0 0 0>
+ , <&key_physical_attrs 100 100 300 100 0 0 0>
+ , <&key_physical_attrs 100 100 400 112 0 0 0>
+ , <&key_physical_attrs 100 100 500 124 0 0 0>
+ , <&key_physical_attrs 100 100 800 124 0 0 0>
+ , <&key_physical_attrs 100 100 900 112 0 0 0>
+ , <&key_physical_attrs 100 100 1000 100 0 0 0>
+ , <&key_physical_attrs 100 100 1100 112 0 0 0>
+ , <&key_physical_attrs 100 100 1200 137 0 0 0>
+ , <&key_physical_attrs 100 100 1300 137 0 0 0>
+ , <&key_physical_attrs 100 100 0 237 0 0 0>
+ , <&key_physical_attrs 100 100 100 237 0 0 0>
+ , <&key_physical_attrs 100 100 200 212 0 0 0>
+ , <&key_physical_attrs 100 100 300 200 0 0 0>
+ , <&key_physical_attrs 100 100 400 212 0 0 0>
+ , <&key_physical_attrs 100 100 500 224 0 0 0>
+ , <&key_physical_attrs 100 100 800 224 0 0 0>
+ , <&key_physical_attrs 100 100 900 212 0 0 0>
+ , <&key_physical_attrs 100 100 1000 200 0 0 0>
+ , <&key_physical_attrs 100 100 1100 212 0 0 0>
+ , <&key_physical_attrs 100 100 1200 237 0 0 0>
+ , <&key_physical_attrs 100 100 1300 237 0 0 0>
+ , <&key_physical_attrs 100 100 350 312 0 0 0>
+ , <&key_physical_attrs 100 100 450 312 1200 450 412>
+ , <&key_physical_attrs 100 150 548 283 2400 548 433>
+ , <&key_physical_attrs 100 150 752 283 (-2400) 852 433>
+ , <&key_physical_attrs 100 100 850 312 (-1200) 950 412>
+ , <&key_physical_attrs 100 100 950 312 0 0 0>
+ ;
+ };
+};
+
+&layouts_foostan_corne_position_map {
+ twelve {
+ physical-layout = <&foostan_corne_6col_layout>;
+ positions
+ = < 0 1 2 3 4 5 6 7 8 9 10 11>
+ , <12 13 14 15 16 17 18 19 20 21 22 23>
+ , <24 25 26 27 28 29 30 31 32 33 34 35>
+ , < 36 37 38 39 40 41 >;
+ };
+};
diff --git a/app/dts/layouts/foostan/corne/position_map.dtsi b/app/dts/layouts/foostan/corne/position_map.dtsi
new file mode 100644
index 0000000000..7cf87d72cd
--- /dev/null
+++ b/app/dts/layouts/foostan/corne/position_map.dtsi
@@ -0,0 +1,7 @@
+/ {
+ layouts_foostan_corne_position_map: layouts_foostan_corne_position_map {
+ compatible = "zmk,physical-layout-position-map";
+
+ complete;
+ };
+};