Giter Site home page Giter Site logo

wttop's Introduction

wttop

You love the new Windows Terminal? So do I!

You love gtop or htop? So do I!

That is why I decided to make an equivalent in dotnetcore using Miguel De Icaza work for Terminal UI.

Wttop is a simple system monitor for the terminal:

wttop print screen

Version 1.1

This version, although it is built on the cross-platform dotnetcore 3.1, does only support Windows. The reason is that it uses WMI - P/invoke to gather metrics.

However, it is made to be cross-platform. I just need to implement the ISystemInfo interface for both OSX and Linux.

The widgets available are:

  • Machine name / version / uptime / System time
  • CPU activity (virtual CPUs)
  • RAM/SWAP usage
  • Network activity
  • Disk activity (aggregation of all disks)
  • Disk usage (list all the available disks)
  • List of top 15 processes

Installation

Manual

With dotnetcore 3.1, only one self-contained .exe file is used. You do not even need to have dotnetcore 3.1 installed on your machine.

Simply download the latest version, store it somewhere in your $path, and run the command from a terminal

/> wttop.exe

Via scoop

If yo do not know Scoop, go and check it out. I find it easier than Chocolatey.

Once Scoop is installed on your machine, simply run the following command:

/> scoop install wttop

Then, you can run

/> wttop.exe

Usage

As of version 1.1, I replaced some WMI calls by p/invoke, much quicker. I have also introduced a couple of commands:

  • Press C to order processes by CPU usage (default)
  • Press M to order processes by Memory usage
  • Press Q to quit

Todo

[x] Add system time widget

[ ] Make it compatible with OSX

[ ] Make it compatible with Linux

[ ] Allow command to kill a process

[ ] Investigate the ability to adjust layout, via config file for instance

License

Wttop is under MIT license

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.