+
Skip to content

a rust-based process monitor and manager using ratatui and tachyonfx for shaders. currently supporting UNIX-like systems

License

Notifications You must be signed in to change notification settings

asian-mario/b-top

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

b-top (bad-top)

b-top (short for bad-top) is a terminal-based, Rust-powered system resource viewer for UNIX-like systems. Inspired by tools like bashtop and htop, b-top provides a visually rich and interactive interface for monitoring CPU, memory, network, and process activity, rendered with smooth animations and intuitive controls.


Features

  • Per-Core CPU Usage: Real-time usage display for each CPU core with color-coded indicators.
  • CPU Usage Graph: Sparkline graph showing historical average CPU usage.
  • Memory Monitoring: Visual gauge showing used vs. total memory in GB.
  • Network Stats: Displays RX/TX bytes for interfaces like eth0 and lo.
  • Process Table: Sortable list of top processes by CPU, memory, or network usage.
  • Smooth Animations: Powered by tachyonfx for subtle UI transitions.
  • Keyboard Navigation: Scroll, jump, sort, and switch interfaces with intuitive keybindings.

Built With

  • Rust
  • ratatui – Terminal UI rendering
  • sysinfo – System information
  • crossterm – Terminal input handling
  • tachyonfx – Animation effects

Controls

Key Action
↑ / ↓ Scroll through process list
PgUp / PgDn Jump up/down in process list
Home Jump to top of process list
← / → Change sorting category
b / n Switch between lo and eth0
q Quit the application
ENTER View more process info
k Kill selected process
u / i Switch between disks

Installation

Prerequisites

  • Rust toolchain (cargo, rustc)
  • A UNIX-like OS (Linux, macOS)

Build and Run

git clone https://github.com/asian-mario/b-top.git
cd b-top
cargo run --release

Downloading b-top

wget https://github.com/asian-mario/b-top/releases/download/[VERSION]/b-top-linux-x86_64.tar.gz
tar -xzf b-top-linux-x86_64.tar.gz
sudo mv b-top /usr/local/bin/

TODO / Roadmap

  • Add disk I/O monitoring
  • Support for more network interfaces
  • Configurable refresh rate
  • Add resource management featres

License

MIT License


Acknowledgements

Thanks to ratatui and TachyonFX repositories for maintaining their projects for for the UI animations.


About

a rust-based process monitor and manager using ratatui and tachyonfx for shaders. currently supporting UNIX-like systems

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载