/zellij-cb

Customizable compact bar plugin for Zellij

Primary LanguageRustMIT LicenseMIT

zellij-cb

Custom compact bar plugin for Zellij based on Zellij's default plugin.

{session directory}-{session name} {mode in 1 letter} {...tabs}

Features

  • Displays session directory name
  • Is super compact and minimal
  • Configurable

Installation

To build it just run make and you'll find the binary in target/wasm32-wasip1/release/zellij-cb.wasm. To load it into Zellij please refer to their plugin loading documentation.

Example usage

Check out my dotfiles.

Available configuration

Key Type Description
DisplaySessionDirectory boolean If this is false then it only displays the session name. It will display the session name in the same style as before only if there's only one - (or none) like the default session names for zellij. If there are more then only the last two pieces of text delimited by it will be displayed with that style and the remaining will be displayed in the session directory style. This is particularly useful for those who wish to include the session directory in the session name. Default: true
DefaultTabName string Default: tab
FgColor color Default: white
BgColor color Default: black
SessionDirectoryColor color Default: white
SessionNameColor color Default: gray
TabColor color Default: gray
ActiveTabColor color Default: green
NormalModeColor color Default: gold
OtherModesColor color Default: orange
OthersColor color Default: orange
{mode}ModeLabel (e.g. NormalModeLabel) string Default: First letter of the mode and empty string if mode is Locked