8000 GitHub - sunng87/zemon: A minimal TUI system monitor for zellij/tmux
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sunng87/zemon

Repository files navigation

zemon

A small TUI widget designed for display system information in zellij.

screenshot

Installation

Using Nix Flakes

Direct installation

nix profile install github:sunng87/zemon

Run without installing

nix run github:sunng87/zemon

NixOS Configuration

Add to your configuration.nix:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    zemon.url = "github:sunng87/zemon";
  };

  outputs = { self, nixpkgs, zemon, ... }: {
    nixosConfigurations.YOUR_USERNAME = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        {
          environment.systemPackages = [
            zemon.packages.x86_64-linux.default
          ];
        }
      ];
    };
  };
}
< 844A /div>

Home Manager

Add to your home.nix:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    home-manager.url = "github:nix-community/home-manager";
    zemon.url = "github:sunng87/zemon";
  };

  outputs = { nixpkgs, home-manager, zemon, ... }: {
    homeConfigurations.YOUR_USERNAME = home-manager.lib.homeManagerConfiguration {
      pkgs = nixpkgs.legacyPackages.x86_64-linux;
      modules = [
        {
          home.packages = [
            zemon.packages.x86_64-linux.default
          ];
        }
      ];
    };
  };
}

ArchLinux/AUR

This package is available on AUR.

paru -S zemon-bin

Usage

You can start zemon from any shell. But it is designed for using in Zellij typically. Start it as a floating pane in Zellij:

zellij run -f -c -- zemon

Or bind it to a shortcut key in Zellij configuration:

bind "Alt m" {
  Run "zemon" {
    floating true
    close_on_exit true
  };
}

Development

Using the development shell

nix develop
cargo run

Building locally

nix build

About

A minimal TUI system monitor for zellij/tmux

Topics

Resources

License

Stars

Watchers

Forks

0