• Stars
    star
    380
  • Rank 112,126 (Top 3 %)
  • Language
    Rust
  • License
    MIT License
  • Created about 1 year ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A configurable statusbar plugin for zellij

zjstatus ๐Ÿ“ˆ๐ŸŽจ

A configurable and themable statusbar for zellij.

clippy check latest version GitHub Wiki



The goal of this statusbar is to provide a highly customizable and extensible statusbar for zellij. Single modules can be formatted separately. Due to the widget structure new modules can be created with ease.

Screenshot of the statusbar

Examples

tmux style tmux style bar
simple style simple style bar
slanted style slanted style bar
example for swapping layouts with zjstatus example for swapping layouts with zjstatus
compact style (thanks to @segaja) compact style bar
conky status (thanks to @benzwt) conky.conf conky status
Demo GIF Demo GIF of zellij with zjstatus

๐Ÿš€ Installation

Tip

For more detailed instructions, check out the wiki!

Download the latest binary in the github releases. Place it somewhere, zellij is able to access it. Then the plugin can be included by referencing it in a layout file, e.g. the default layout one.

You could also refer to the plugin guide from zellij, after downloading the binary: https://zellij.dev/documentation/plugin-loading

Please ensure, that the configuration is correct.

Important

In case you experience any crashes or issues, please in the first step try to clear the cache! ($HOME/.cache/zellij/ for Linux, $HOME/Library/Caches/org.Zellij-Contributors.Zellij/ on macOS)

Sometimes, especially when updating zjstatus, it might come to caching issues, which can be resolved by clearing it. Please keep in mind, that it will also clear the cache for running sessions and revokes granted permissions for plugins.

โ„๏ธ Installation with nix flake

Add this repository to your inputs and then with the following overlay to your packages. Then you are able to install and refer to it with pkgs.zjstatus. When templating the config file, you can use ${pkgs.zjstatus}/bin/zjstatus.wasm as the path.

  inputs = {
    # ...

    zjstatus = {
      url = "github:dj95/zjstatus";
    };
  };


  # define the outputs of this flake - especially the home configurations
  outputs = { self, nixpkgs, zjstatus, ... }@inputs:
  let
    inherit (inputs.nixpkgs.lib) attrValues;

    overlays = with inputs; [
      # ...
      (final: prev: {
        zjstatus = zjstatus.packages.${prev.system}.default;
      })
    ];

โš™๏ธ Configuration

For configuring zjstatus, please follow the documentation.

๐ŸŽ๏ธ Quick Start

Place this configuration in your default layout file, e.g. ~/.config/zellij/layouts/default.kdl:

Important

Using zjstatus involves creating new layouts and overriding the default one. This will lead to swap layouts not working, when they are not configured correctly. Please follow this documentation for getting swap layouts back to work, if you need them.

layout {
    default_tab_template {
        children
        pane size=1 borderless=true {
            plugin location="https://github.com/dj95/zjstatus/releases/latest/download/zjstatus.wasm" {
                format_left   "{mode} #[fg=#89B4FA,bold]{session}"
                format_center "{tabs}"
                format_right  "{command_git_branch} {datetime}"
                format_space  ""

                border_enabled  "false"
                border_char     "โ”€"
                border_format   "#[fg=#6C7086]{char}"
                border_position "top"

                hide_frame_for_single_pane "true"

                mode_normal  "#[bg=blue] "
                mode_tmux    "#[bg=#ffc387] "

                tab_normal   "#[fg=#6C7086] {name} "
                tab_active   "#[fg=#9399B2,bold,italic] {name} "

                command_git_branch_command     "git rev-parse --abbrev-ref HEAD"
                command_git_branch_format      "#[fg=blue] {stdout} "
                command_git_branch_interval    "10"
                command_git_branch_rendermode  "static"

                datetime        "#[fg=#6C7086,bold] {format} "
                datetime_format "%A, %d %b %Y %H:%M"
                datetime_timezone "Europe/Berlin"
            }
        }
    }
}

๐Ÿงฑ Widgets

The documentation for the widgets can be found in the wiki.

The following widgets are available:

๐Ÿšง Development

Make sure you have rust and the wasm32-wasi target installed. If using nix, you could utilize the nix-shell in this repo for obtaining cargo and rustup. Then you'll only need to add the target with rustup target add wasm32-wasi.

With the toolchain, simply build zjstatus with cargo build. Then you are able to run the example configuration with zellij -l plugin-dev-workspace.kdl from the root of the repository.

๐Ÿค Contributing

If you are missing features or find some annoying bugs please feel free to submit an issue or a bugfix within a pull request :)

๐Ÿ“ License

ยฉ 2023 Daniel Jankowski

This project is licensed under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

zj-docker

Zellij plugin to display docker containers and perform basic operations on them.
Rust
22
star
2

lemonbarpy

lemonbar for bspwm
Python
15
star
3

dwm-theme-switcher

Theme switcher for dwm
Vim Script
12
star
4

awesome-macos

A macOS-like theme for awesome wm
Lua
11
star
5

kustomize-quick-create

A quick create wizard to create and modify opinionated kustomize deployments.
Rust
9
star
6

statusline

Simple statusline for lemonbar
C
8
star
7

fn-notify

A function key notifier popup
C
7
star
8

ba-project

An implementation of a lattice based attack on crt-rsa with small exponents
Python
6
star
9

chaos-proxy

A small proxy to test out applications with different bandwidth, latency and packet loss
Go
6
star
10

ygrep

๐Ÿ” Grep for keys in yaml files and print their complete value.
Go
5
star
11

huekit

Automatically bridge third party hue lights to HomeKit.
Go
5
star
12

telescope-gen.nvim

Telescope extension for starting gen.nvim with a pre-configured prompt
Lua
4
star
13

argo-helm-updater

Check and update your deployed helm charts in argo to the newest version
Rust
4
star
14

learninglocker-docker

A docker environment for learninglocker 2
Dockerfile
3
star
15

nix-dotfiles

My custom nix home manager configuration
Lua
2
star
16

advent-of-code

Rust
2
star
17

todoist-notify

A fun project to display todoist tasks and projects with libnotify
Python
2
star
18

zjk8s

Kubernetes explorer for zellij
Rust
1
star
19

spoterm

Spotify TUI for linux
Python
1
star
20

dwm-custom-patches

My dwm--config with some patches
C
1
star
21

i3-dotfiles

My personal dotfiles for i3
Python
1
star
22

dmenu-docker

A wrapper for dmenu to start/stop docker container
Python
1
star