From 231c9fb210a15f7c29607b9f7581938ef7ffe261 Mon Sep 17 00:00:00 2001 From: David Levanon Date: Sun, 4 Oct 2020 13:38:45 +0300 Subject: [PATCH] move json layout example files to data --- .../layout-files-examples}/2-3-grid.json | 0 .../layout-files-examples}/2-columns.json | 0 .../layout-files-examples}/3-rows.json | 0 .../layout-files-examples}/3-tabs-2-rows.json | 0 .../3-tabs-3-columns.json | 0 .../layout-files-examples}/4-4-grid.json | 0 data/layout-files-examples/README | 8 + data/layout-files-examples/complex.json | 224 ++++++++++++++++++ 8 files changed, 232 insertions(+) rename {layout-files-examples => data/layout-files-examples}/2-3-grid.json (100%) rename {layout-files-examples => data/layout-files-examples}/2-columns.json (100%) rename {layout-files-examples => data/layout-files-examples}/3-rows.json (100%) rename {layout-files-examples => data/layout-files-examples}/3-tabs-2-rows.json (100%) rename {layout-files-examples => data/layout-files-examples}/3-tabs-3-columns.json (100%) rename {layout-files-examples => data/layout-files-examples}/4-4-grid.json (100%) create mode 100644 data/layout-files-examples/README create mode 100644 data/layout-files-examples/complex.json 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