aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2023-09-08 08:51:12 +0200
committerDaniel Jankowski <daniel.jankowski@rub.de>2023-09-08 08:51:12 +0200
commit9f2c00e277e20a4d58dfe1297400a5812cc271bb (patch)
tree911a6e7b7484ea0a088b7a51f07ea6666b8e37e5 /README.md
parentfeat: add index to tabs widget (diff)
downloadsl0pstatus-9f2c00e277e20a4d58dfe1297400a5812cc271bb.tar.gz
sl0pstatus-9f2c00e277e20a4d58dfe1297400a5812cc271bb.tar.xz
sl0pstatus-9f2c00e277e20a4d58dfe1297400a5812cc271bb.zip
chore: add example for tmux style config
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/README.md b/README.md
index 37ff2b7..e9af294 100644
--- a/README.md
+++ b/README.md
@@ -14,8 +14,12 @@
![Screenshot of the statusbar](./assets/demo.png)
<details>
- <summary>Demo GIF</summary>
- <img src="./assets/demo.gif" alt="Demo GIF of zellij with zjstatus" />
+<summary>Examples</summary>
+<b>tmux style</b>
+<img src="./examples/tmux.png" alt="tmux style bar" />
+<br>
+<b>Demo GIF</b>
+<img src="./assets/demo.gif" alt="Demo GIF of zellij with zjstatus" />
</details>
## 🚀 Installation
@@ -144,10 +148,11 @@ sequence right before the handle in `format_left` or `format_right`.
Print a list of current tabs. The name of the tab can be used with `{name}` in the config. The active tab will
default to the normal formatting, if not configured.
+With `{index}` the tab position can also be used.
```kdl
# formatting for inactive tabs
-tab_normal "#[fg=#6C7086] {name} "
+tab_normal "#[fg=#6C7086] {index} :: {name} "
# formatting for the current active tab
tab_active "#[fg=#9399B2,bold,italic] {name} "