aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorqepasa <pawelpalenica11@gmail.com>2021-07-20 22:19:03 -0700
committerGitHub <noreply@github.com>2021-07-20 22:19:03 -0700
commitf0bc2977434d54079e0ca50bd1c18cd8bb7e1830 (patch)
tree501314d4f6fcb6116acac0314cf21fa1c3e75223 /example
parentRead from LoggingPipe returns error (diff)
parentdocs(changelog): noop for mouse actions on plugins (diff)
downloadsl0ppij-f0bc2977434d54079e0ca50bd1c18cd8bb7e1830.tar.gz
sl0ppij-f0bc2977434d54079e0ca50bd1c18cd8bb7e1830.tar.xz
sl0ppij-f0bc2977434d54079e0ca50bd1c18cd8bb7e1830.zip
Merge branch 'main' into unified-logging
Diffstat (limited to 'example')
-rw-r--r--example/run_htop_layout.yaml20
-rw-r--r--example/run_htop_layout_with_plugins.yaml30
2 files changed, 50 insertions, 0 deletions
diff --git a/example/run_htop_layout.yaml b/example/run_htop_layout.yaml
new file mode 100644
index 00000000..949435d6
--- /dev/null
+++ b/example/run_htop_layout.yaml
@@ -0,0 +1,20 @@
+---
+direction: Vertical
+parts:
+ - direction: Horizontal
+ split_size:
+ Percent: 50
+ parts:
+ - direction: Vertical
+ split_size:
+ Percent: 50
+ - direction: Vertical
+ split_size:
+ Percent: 50
+ run:
+ command: {cmd: htop}
+ - direction: Horizontal
+ split_size:
+ Percent: 50
+ run:
+ command: {cmd: htop}
diff --git a/example/run_htop_layout_with_plugins.yaml b/example/run_htop_layout_with_plugins.yaml
new file mode 100644
index 00000000..99f72edb
--- /dev/null
+++ b/example/run_htop_layout_with_plugins.yaml
@@ -0,0 +1,30 @@
+---
+direction: Horizontal
+parts:
+ - direction: Vertical
+ split_size:
+ Fixed: 1
+ run:
+ plugin: tab-bar
+ - direction: Vertical
+ parts:
+ - direction: Vertical
+ parts:
+ - direction: Vertical
+ split_size:
+ Percent: 50
+ run:
+ command: {cmd: htop}
+ - direction: Vertical
+ split_size:
+ Percent: 50
+ run:
+ command: {cmd: htop, args: ["-C"]}
+ - direction: Vertical
+ split_size:
+ Fixed: 5
+ - direction: Vertical
+ split_size:
+ Fixed: 2
+ run:
+ plugin: status-bar