Macchina is a fetching program, not a library. But you can use the functions it relies on to extract system data in your own program.
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 - Product - Manufacturer - Model name - Distribution - Desktop Environment - Kernel version - Package count - Shell - Terminal - Processor - Model name - Frequency - Thread count - Uptime - Memory - Used / Total - Battery - Percentage - Status - Palette
Package count: Arch-based distributions only, as it will print 0 on any other distribution
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 pick 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 bars
--theme <theme_name>
- Change themes
--padding <amount>
- Specify the amount of (left) padding to use
--help
- Display help menu
--version
- Print version
Macchina is available on:
Install using your favorite AUR helper or by running:
git clone https://aur.archlinux.org/macchina.git
cd macchina
makepkg -si
Install using cargo:
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