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.
You are now required to specify your network interface for the local IP readout to work properly.
```toml
ip address
interface = "wlan0" ```
Why the sudden change?
We changed IP crates. The previous crate would ping Google DNS servers in order to fetch your local IP. And nobody wants that.
We understand that a lot of you are developers and/or power users, and need your fetcher to be quick, powerful and extensible. If it's a docker container whose local IP you wanna grab, a virtual machine or anything that relies on a network interface to communicate with the outside world, we've got you covered.
You can now shorten the output of the kernel readout through the new
--long-kernel
flag or by adding the following to your macchina.toml:
```toml
long_kernel = false ```
You can now customize the text of every readout's key — Whaaaat!
Jump in your theme file and add the following:
json
"keys": {
"host": "HOST",
"kernel": "KERN",
"battery": "BAT",
"os": "OS",
"de": "DE",
"wm": "WM",
"distro": "DIST",
"terminal": "TERM",
"shell": "SHELL",
"packages": "PKGS",
"uptime": "UP",
"memory": "MEM",
"machine": "MACH",
"local_ip": "IP",
"backlight": "BRI",
"resolution": "RES",
"cpu_load": "CPU LOAD",
"cpu": "CPU"
},
macchina is lightning fast, see for yourself:
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 |
| Command | Mean [ms] | Min [ms] | Max [ms] |
| :--------- | --------: | -------: | -------: |
| macchina
| 5.0 ± 0.2 | 4.7 | 5.9 |
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 |
| Command | Mean [ms] | Min [ms] | Max [ms] |
| :--------- | --------: | -------: | -------: |
| macchina
| 9.0 ± 0.4 | 8.2 | 11.7 |
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>
, you can also
make your own.
Bars provide a way to visualize data, through symbols rather than numbers, and
they can be enabled using the --bar
flag.
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.
See macchina.toml for an example configuration file.
macchina.toml
in:
$XDG_CONFIG_HOME/macchina
on Linux and the BSDs.$HOME/Library/Application Support/macchina
on macOS.{FOLDERID_RoamingAppData}/macchina
on Windows.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.
$XDG_DATA_HOME/macchina/themes
on Linux and the BSDs.$HOME/Library/Application/macchina/themes
on macOS.{FOLDERID_RoamingAppData}/macchina/themes
on Windows.You can have as many as you want, just avoid using the names of built-in themes.
To start using your theme:
macchina --list-themes
to verify that macchina has listed your theme.macchina.toml
, add theme = <name_of_theme_without_json_extension>
.These dependencies are not required, but they extend what macchina can show.
cargo install macchina
pkgin install macchina
brew install macchina
pkg install macchina
scoop install macchina
bash
git clone https://aur.archlinux.org/macchina.git
cd macchina
makepkg -si
bash
git clone https://aur.archlinux.org/macchina-git.git
cd macchina
makepkg -si
<channel>
is nixpkgs
or nixos
:bash
nix-env -iA <channel>.macchina
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.
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!