diff --git a/layout-files-examples/2-3-grid.json b/data/layout-files-examples/2-3-grid.json similarity index 100% rename from layout-files-examples/2-3-grid.json rename to data/layout-files-examples/2-3-grid.json diff --git a/layout-files-examples/2-columns.json b/data/layout-files-examples/2-columns.json similarity index 100% rename from layout-files-examples/2-columns.json rename to data/layout-files-examples/2-columns.json diff --git a/layout-files-examples/3-rows.json b/data/layout-files-examples/3-rows.json similarity index 100% rename from layout-files-examples/3-rows.json rename to data/layout-files-examples/3-rows.json diff --git a/layout-files-examples/3-tabs-2-rows.json b/data/layout-files-examples/3-tabs-2-rows.json similarity index 100% rename from layout-files-examples/3-tabs-2-rows.json rename to data/layout-files-examples/3-tabs-2-rows.json diff --git a/layout-files-examples/3-tabs-3-columns.json b/data/layout-files-examples/3-tabs-3-columns.json similarity index 100% rename from layout-files-examples/3-tabs-3-columns.json rename to data/layout-files-examples/3-tabs-3-columns.json diff --git a/layout-files-examples/4-4-grid.json b/data/layout-files-examples/4-4-grid.json similarity index 100% rename from layout-files-examples/4-4-grid.json rename to data/layout-files-examples/4-4-grid.json diff --git a/data/layout-files-examples/README b/data/layout-files-examples/README new file mode 100644 index 00000000..98ce6592 --- /dev/null +++ b/data/layout-files-examples/README @@ -0,0 +1,8 @@ +The JSONs files in this directory are example config files used by `--config-json` option. + +Once this feature would be documented officialy this directoy can be removed. + +Example: +``` +./terminator --config-json data/layout-files-examples/2-3-grid.json +``` diff --git a/data/layout-files-examples/complex.json b/data/layout-files-examples/complex.json new file mode 100644 index 00000000..f92e83d3 --- /dev/null +++ b/data/layout-files-examples/complex.json @@ -0,0 +1,224 @@ +{ + "layout":{ + "columns": [ + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + } + ] + } + ], + "rows": [ + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + } + ], + "grid": [ + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + } + ] + }, + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + } + ] + }, + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + } + ] + }, + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + } + ] + } + ], + "border": [ + { + "command": "bash", + "ratio": 0.2 + }, + { + "ratio": 0.8, + "children": [ + { + "command": "bash", + "ratio": 0.2 + }, + { + "command": "bash", + "ratio": 0.8 + }, + { + "command": "bash" + } + ] + }, + { + "command": "bash" + } + ], + "nested": [ + { + "children": [ + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + }, + { + "command": "bash" + } + ] + }, + { + "command": "bash" + } + ] + }, + { + "children": [ + { + "children": [ + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + } + ] + }, + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + } + ] + } + ] + }, + { + "children": [ + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + } + ] + }, + { + "children": [ + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + } + ] + }, + { + "children": [ + { + "command": "bash" + }, + { + "command": "bash" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + "profile":{ + "background_color": "#170717", + "foreground_color": "#f5c0b7", + "font": "Monospace 16", + "scrollback_infinite":"True" + } +} \ No newline at end of file