Macchina

Fast, minimal and customizable system information frontend. Linux • macOS • Windows • NetBSD • OpenWrt • Android Preview Version Downloads

Table of Contents


Upgrading to v2.0

The second major version of macchina includes a breaking change in macchina's configuration file that could result in an error if you don't update your configuration accordingly.

<2.0

macchina.toml:

toml palette = "<True|False>"

>=2.0

macchina.toml:

```toml

this is optional, leaving it out/commenting it hides the palette

palette = "" ```

Thanks to


About

macchina lets you view system information, like your kernel version, uptime, memory usage, processor load and much more.

If you're interested in the library macchina uses to fetch system information, have a look at libmacchina; fetching-related issues should be filed on that repository.


Performance

macchina is lightning fast, see for yourself:

🐧 Linux

This benchmark was performed using an Intel® Core™ i5-3350P CPU @ 3.10GHz

| Command | Mean [ms] | Min [ms] | Max [ms] | |:--- | --------: | --------:| --------:| | macchina | 4.8 ± 0.4 | 4.5 | 8.1 |

🍏 macOS

| Command | Mean [ms] | Min [ms] | Max [ms] | | :--------- | --------: | -------: | -------: | | macchina | 5.0 ± 0.2 | 4.7 | 5.9 |

🚩 NetBSD

This benchmark was performed inside a virtual machine using an Intel® Core™ i5-8265U CPU @ 1.60GHz

| Command | Mean [ms] | Min [ms] | Max [ms] | | :--------- | ---------: | -------: | -------: | | macchina | 17.7 ± 1.6 | 16.8 | 27.2 |

💻 Windows

| Command | Mean [ms] | Min [ms] | Max [ms] | | :--------- | --------: | -------: | -------: | | macchina | 9.0 ± 0.4 | 8.2 | 11.7 |


Features

Themes

macchina comes equipped with built-in themes that style their readouts, bars and separators differently. You can see the list with the --list-themes flag and use the one you like with --theme <name>.

Bars

Bars provide a way to visualize data, through symbols rather than numbers, and they can be enabled using the --bar flag.

Doctor

libmacchina can sometimes fail to fetch certain readouts, and macchina has a feature in place that allows you to see why they failed, this is done through the --doctor flag.


Configuration

See macchina.toml for an example configuration file.

You can also create custom themes in JSON format. Themes allow for more customization and are separate from the main configuration file. See Carbon.json for an example theme.

To start using your theme: 1. Run macchina --list-themes to verify that macchina has listed your theme 2. Inside macchina.toml, add theme = <name_of_theme_without_json_extension> 3. You're good to go! macchina will start using your theme.


Runtime dependencies

These dependencies are not required, but they extend what macchina can show.

Linux:

NetBSD:


Installation

Cargo

cargo install macchina

Pkgsrc

pkgin install macchina

Homebrew

brew install macchina

Termux

pkg install macchina

Windows

scoop install macchina

Arch Linux

Nix

The installation wiki page lists some other ways you can install the program or the steps to compile from source.

You might prefer running the prebuilt binary that corresponds with your operating system.


Platform Support

| Platform | Supported | | :-------: | :-------: | | Linux | ✓ | | NetBSD | ✓ | | macOS | ✓ | | Windows | ✓ | | OpenWrt | ✓ | | Android | ✓ |

Contributors

Crates.io

macchina, like many other open-source projects, would not be where it is right now without the help of its contributors, thank you all so much!