Macchina is a fetching program, not a library.
It lets you view basic system information, like your hostname, your kernel version, memory usage, and much more. No one wants a slow fetcher, and macchina's main goal is to provide you with handy features while keeping performance a priority.
Macchina is pretty fast, see for yourself:
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| macchina
| 22.2 ± 0.7 | 21.0 | 25.1 | 1.00 |
| neofetch
| 243.9 ± 2.3 | 240.0 | 246.9 | 11.01 ± 0.37 |
Summary: macchina
runs 11.01 ± 0.37 times faster than neofetch
Macchina displays basic system information such as:
- Hostname
- Operating system
- Kernel version
- Package count (Arch-based distributions only, will print 0 on any other distribution)
- Shell path/name in which macchina was ran
- Terminal instance name in which macchina was ran
- Processor model name, frequency and thread count
- Uptime
- Memory usage
- Battery percentage and status
- Palette (using --palette / -p
)
Macchina supports the following arguments:
- --no-color
-> disable colors
- --color <color>
-> specify the key color
- --separator-color <color>
-> specify the separator color
- --random-color
-> let macchina choose a random color for you
- --palette
-> display palette
- --short-sh
-> shorten shell output (/bin/zsh => zsh)
- --hide <element>
-> hide elements such as host, os, kern, etc.
- --bar
-> display memory usage and battery percentage as progress bars
- --theme <theme_name>
-> change themes
- --help
-> display help menu
- --version
-> print version
- --padding <amount>
-> specify the amount of (left) padding to use
To install macchina on your system, run the following command:
cargo install macchina
| Platform | Support | | :-: | :-: | | Linux | X | | BSD | ? | | MacOS | | | Windows | |
Cells containing X: Macchina supports that platform
Cells containing ?: Macchina has not been tested yet on that platform
Empty cells: Macchina does not support that platform