1
0
mirror of https://github.com/danog/ytop.git synced 2024-11-26 12:04:50 +01:00
Go to file
2020-05-11 23:45:04 +03:00
.github Update issue template 2020-01-25 07:25:16 -08:00
assets Add media from gotop 2020-01-13 08:40:58 -08:00
colorschemes Add media from gotop 2020-01-13 08:40:58 -08:00
package-publisher 0.6.1 2020-05-10 14:26:11 -07:00
src Merge pull request #78 from vojta7/proc_improvement 2020-05-11 11:08:22 -07:00
.editorconfig Fix yml indentation 2019-07-29 22:18:52 -07:00
.gitignore Initial commit 2019-07-20 17:57:40 -07:00
.rustfmt.toml Convert spaces to tabs 2019-07-26 20:28:16 -07:00
Cargo.lock 0.6.1 2020-05-10 14:26:11 -07:00
Cargo.toml 0.6.1 2020-05-10 14:26:11 -07:00
CHANGELOG.md update changelog 2020-05-11 11:15:40 -07:00
LICENSE Initial commit 2019-07-20 17:57:40 -07:00
README.md Update Fedora/CentOS installation instructions 2020-05-11 23:45:04 +03:00

ytop

Minimum rustc version Matrix

Another TUI based system monitor, this time in Rust!

Missing features

  • macOS is missing disk io counters and process commandline
  • Process filtering isn't implemented
  • Mouse usage isn't implemented

Installation

Currently works on Linux and macOS with support planned for all major platforms.

Package managers

Packaging status

Fedora/CentOS

Updates in official Fedora/EPEL repositories may lag at this moment. As an alternative you can install from COPR:

sudo dnf copr enable atim/ytop -y
sudo dnf install ytop

Homebrew

brew tap cjbassi/ytop
brew install ytop

Prebuilt binaries

Prebuilt binaries are provided in the releases tab.

From source

cargo install ytop

Usage

Keybinds

  • Quit: q or <C-c>
  • Pause: <Space>
  • Process navigation:
    • k and <Up>: up
    • j and <Down>: down
    • <C-u>: half page up
    • <C-d>: half page down
    • <C-b>: full page up
    • <C-f>: full page down
    • gg and <Home>: jump to top
    • G and <End>: jump to bottom
  • Process actions:
    • <Tab>: toggle process grouping
    • dd: kill selected process or process group
  • Process sorting:
    • p: PID/Count
    • n: Command
    • c: CPU
    • m: Mem
  • Process filtering:
    • /: start editing filter
    • (while editing):
      • <Enter>: accept filter
      • <C-c> and <Escape>: clear filter
  • CPU and Mem graph scaling:
    • h: scale in
    • l: scale out
  • ?: toggles keybind help menu

Mouse

  • click to select process
  • mouse wheel to scroll through processes

Colorschemes

ytop ships with a few colorschemes which can be set with the -c flag followed by the name of one. You can find all the colorschemes in the colorschemes folder.

To make a custom colorscheme, copy one of the default ones to ~/.config/ytop/<new-name>.json and load it with ytop -c <new-name>. Colorscheme PRs are welcome!

CLI Options

USAGE:
    ytop [FLAGS] [OPTIONS]

FLAGS:
    -a, --average-cpu    Show average CPU in the CPU widget
    -b, --battery        Show Battery widget (overridden by 'minimal' flag)
    -f, --fahrenheit     Show temperatures in fahrenheit
    -h, --help           Prints help information
    -m, --minimal        Only show the CPU, Mem, and Process widgets
    -p, --per-cpu        Show each CPU in the CPU widget
    -s, --statusbar      Show a statusbar with the time
    -V, --version        Prints version information

OPTIONS:
    -c, --colorscheme <colorscheme>    Set a colorscheme [default: default]
    -i, --interface <interface>        The name of the network interface to show in the Net widget. 'all' shows all
                                       interfaces [default: all]
    -I, --interval <interval>          Interval in seconds between updates of the CPU and Mem widgets. Can specify
                                       either a whole number or a fraction with a numerator of 1 [default: 1]