34 releases
0.4.5 | Apr 12, 2024 |
---|---|
0.4.4 | Apr 12, 2024 |
0.3.9 | Apr 10, 2024 |
0.3.4 | Mar 31, 2024 |
0.1.8 | Mar 24, 2024 |
#26 in Command line utilities
2,669 downloads per month
34KB
751 lines
Rsftch
Lightning fast hardware fetch written in rust.
Screenshots
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
Dependencies
~1–32MB
~451K SLoC