| Crates.io | rtop-rs |
| lib.rs | rtop-rs |
| version | 1.1.1 |
| created_at | 2022-04-02 14:59:58.072313+00 |
| updated_at | 2022-11-18 09:39:21.292217+00 |
| description | Faster and better alternative to Vtop written in Rust. |
| homepage | |
| repository | https://github.com/SquitchYT/RTop |
| max_upload_size | |
| id | 560961 |
| size | 71,501 |
Rtop is available on crates.io You can download it with
cargo install rtop-rs
Start by cloning the repo:
git clone https://github.com/RTopRS/Rtop.git
For the next step you need to have Rust and cargo installed on your PC, for that follow the official documentation.
Now switch to project folder and compile a release:
cd RTop && cargo build --release
Your executable will be in the target/release/ folder, it is named rtop.
You can customize Rtop as like you want!
First, create this file ~/.config/rtop/config
Then, paste it this config template:
{
"pages": [
[
"cpu_chart",
"memory_chart",
"process_list"
]
],
"plugins": [
]
}
If you want to add a plugin, simply add this entry in the plugins key
{
"name": "foo",
"path": "/path/to/the/lib.so"
}
Then, simply add some plugin's widgets. For example, here we add the widget foo and the widget bar on the same page.
[
"foo.foo",
"foo.bar"
]
The final result should look like this
{
"pages": [
[
"cpu_chart",
"memory_chart",
"process_list"
],
[
"foo.foo",
"foo.bar"
]
],
"plugins": [
{
"name": "foo",
"path": "/path/to/the/lib.so"
}
]
}
Just remember, you can only put 4 widgets per page