GithubHelp home page GithubHelp logo

optionalg / tmux-top Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomastomecek/tmux-top

0.0 2.0 0.0 119 KB

Monitoring information for your tmux status line.

License: GNU General Public License v2.0

Makefile 1.16% Go 98.84%

tmux-top's Introduction

Build Status

tmux-top

Monitoring information for your tmux status line.

tmux-top allows you to see your:

  • load
  • memory usage
  • network information
  • I/O

tmux-top sample tmux-top sample

Installation

This tool is written in Go. If you want to compile it, you have to setup your Go environment first.

Supported platforms

  • linux

Go distribution

go get github.com/TomasTomecek/tmux-top/cli

When the command succeeds, tmux-top is placed in directory ${GOPATH}/bin and named cli. You can rename it easily:

mv ${GOPATH}/bin/{cli,tmux-top}

Manual installation

git clone https://github.com/TomasTomecek/tmux-top.git

Once cloned, compile it using well-known process:

make
sudo make install

Usage

There are three subcommands at the moment:

  1. tmux-top load — load of your workstation
  2. tmux-top mem — actual memry usage and total memory
  3. tmux-top net — network statistics: IP address, network interface and current bandwidth
  4. tmux-top io — I/O statistics: current reads and writes

Configuration

This json contains default configuration. If you want to change something, just override the json and store it in ~/.tmux-top. You can change whatever you want. If the value is not found in your configuration file, it's loaded from default one.

Your configuration may look like this:

{
  "net": {
    "interfaces": {
      "enp0s25": {
        "alias": "E",
        "label_color_fg": "white",
        "label_color_bg": "default",
        "address_color_fg": "colour4",
        "address_color_bg": "default"
      },
      "enp5s0": {
        "alias": "E",
        "label_color_fg": "white",
        "label_color_bg": "default",
        "address_color_fg": "colour4",
        "address_color_bg": "default"
      },
      "wlp3s0": {
        "alias": "W",
        "label_color_fg": "white",
        "label_color_bg": "default",
        "address_color_fg": "green",
        "address_color_bg": "default"
      },
      "tun0": {
        "alias": "V",
        "label_color_fg": "white",
        "label_color_bg": "default",
        "address_color_fg": "colour3",
        "address_color_bg": "default"
      }
    }
  }
}

and tmux configuration:

set -g status-left "#(tmux-top n)"
set -g status-right "#(tmux-top m) #[fg=white]:: #(tmux-top l)"

Layout inspiration from this blog post.

Other goodies for tmux

tmux-top's People

Contributors

tomastomecek avatar nreilingh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.