rsftch 0.4.5

Lightning fast hardware fetch tool written in rust.
rsftch-0.4.5 is not a library.

Rsftch

Lightning fast hardware fetch written in rust.

Screenshots

image image image

Supported distros

  • Arch Linux
  • Debian
  • Fedora
  • Endeavour OS
  • Void Linux
  • Ubuntu
  • OpenSuse
  • Raspbian
  • Linux Mint
  • MX Linux
  • Gentoo
  • Slackware
  • NixOS
  • Kali Linux
  • CachyOS
  • FreeBSD
  • NetBSD
  • Other distros wont have a custom title, only "Rust Fetch"

Dependencies

  • pciutils
  • Any nerdfont

Installation

Cargo (recommended)

cargo install rsftch

AUR

With your favourite AUR helper: aura -A rsftch-git yay -S rsftch-git paru -S rsftch-git

Or from AUR source:

sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/rsftch-git.git
cd rsftch-git
makepkg -si

Git Source

git clone https://github.com/charklie/rsftch.git`
cd rsftch
cargo install --path .

NetBSD

If you're on NetBSD or, any supported pkgsrc platform, a pre-compiled binary is available from the official repositories. To install it, simply run: pkgin install rsftch

Or, if you prefer to build it from source:

cd /usr/pkgsrc/sysutils/rsftch
make install

Common issues

Running rsftch in terminal does't work

Add this to your .bashrc / .zshrc if you already dont: export PATH="/home/$USER/.cargo/bin:$PATH"

If you're using fish, run this command if you already haven't: set -U fish_user_paths ~/.cargo/bin/ $fish_user_paths

Usage

Usage: rsftch [OPTION...] [OVERRIDE] [MARGIN]

  -h, --help, --usage   Bring up this menu
  --no-color, --no-formatting
  -nc, -nf              Remove icons, colors and such.
  -o, --override        Override distribution, changes ASCII.
  -m, --margin          Add margin to the info sections, default 1.```

Time comparison

  • Rsftch: 35.21 milliseconds
  • Neofetch: 284.03 milliseconds
  • Screeenfetch: 832.59 milliseconds
  • Hyfetch: 1.82 seconds (💀)

Compatability

Currently Rsftch only works on GNU/Linux, (most) BSD distributions and (probably) Mac OS.

Todo

  • Add more distros
  • Add more info (resolution)
  • Add more info (packages)
  • Rewrite memory function to rid of libmacchina dep.
  • Add -c1, -c2, -c3 options to change colors of sections
  • Change to clap for arguments (if it doesnt ruin exec speed)
  • Optimize packages function