Table of Contents:
About Macchina
Macchina lets you view basic system information, like your hostname, kernel version, uptime, memory usage, and much more. No one wants a slow fetcher, and Macchina's selling point is providing you with convenient features while keeping performance a priority and minimalism a goal.
Changelog
This new update brings a lot of cool concepts that make Macchina a little more user-friendly, and more forgiving if something goes wrong in the system fetching phase, I'll be improving these new features more and more as time goes on, and will now focus mostly on providing NetBSD the experience that it deserves, fix nasty bugs that might occur on different kinds of hardware and give the code a clean-up!
Here's a list of new changes:
- Meet
Fail
, a cleaner implementation for taking care of value extraction errors, and his buddy--debug
--debug / -d
helps you identify what elements have failed and how they're extracted from your system, if an error occured it'll print the status (ERROR:DISABLED or OK:DISABLED), the element and the extraction method.- Add a condition for when SReclaimable memory isn't present in /proc/meminfo
- Uppercase first letter of shorthand shell output e.g.
zsh
will beZsh
- Spice up README files with a new Macchina banner!
Dependencies
- wmctrl to print your window manager
Benchmarks
Macchina is pretty fast, see for yourself:
- Execution time is measured using hyperfine
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
- Note that hiding elements using Macchina's --hide significantly improves speed
Features
Themes:
Macchina displays basic system information such as:
- Host
- Username
- Hostname
- Product
- Manufacturer
- Model name & version
- Kernel
- Name
- Version
- Distribution
- Desktop Environment
- Window Manager
- Package count
- Shell
- Terminal
- Processor
- Model name
- Frequency
- Thread count
- Uptime
- Memory
- Used / Total
- Battery
- Percentage
- Status
- Palette
Package count supports package managers of:
- Arch-based distributions
- Debian-based distributions
- NetBSD
Macchina requires wmctrl to be installed to print your Window Managern, and only some window managers will be displayed as wmctrl "only works with window managers which implement the EWMH specification"
Macchina supports the following arguments:
--no-color / -n
- Disable colors
--color / -c <color>
- Specify the key color
--separator-color / -C <color>
- Specify the separator color
--random-color / -r
- Let Macchina pick a random color for you
--palette / -p
- Display palette
--short-sh / -S
- Shorten shell output (/bin/zsh -> zsh)
--short-uptime / -U
- Shorten shell output (/bin/zsh -> zsh)
--hide / -H <element>
- Hide elements such as host, os, kern, etc.
--show-only / -X <element>
- Display only the provided elements
--bar / -b
- Display memory usage and battery percentage as bars
--theme / -t <theme>
- Specify the theme
--padding / -P <amount>
- Specify the amount of (left) padding to use
--spacing / -s <amount>
- Specify the amount of spacing to use
--debug / -d
- Print debug information, use when an element fails to display.
--help / -h
- Print help text
--version / -v
- Print version
Installation
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
Platform | Support |
---|---|
Linux | Yes |
NetBSD | Partial |
MacOS | |
Windows |