From e4d30dfcba0bb11f7ad6c7e9603f64b2da61428e Mon Sep 17 00:00:00 2001 From: h1romas4 Date: Tue, 21 May 2024 15:52:04 +0900 Subject: [PATCH] Add hint how to correctly add zellij-datetime on same line as other bars to readme #6 --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 73e4194..6af6b18 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ Set the full path to `zellij-datetime.wasm` in the `~/.config/zellij/layouts/def vi ~/.config/zellij/layouts/default.kdl ``` +Example - Basic layout: + ```kdl layout { pane size=1 borderless=true { @@ -59,6 +61,25 @@ layout { } ``` +Example - The same line as the other bar(s): + +```kdl +layout { + pane size=1 split_direction="vertical" { + pane size="75%" borderless=true { + plugin location="zellij:tab-bar" + } + pane size="25%" borderless=true { + plugin location="file:/home/hiromasa/.config/zellij/plugins/zellij-datetime.wasm" + } + } + pane + pane size=2 borderless=true { + plugin location="zellij:status-bar" + } +} +``` + ## Usage - Timezone can be selected by left mouse click or scrolling.