Skip to content

zhoukuncheng/zigfetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zigfetch

A lightweight, cross-platform system information tool written in Zig, inspired by neofetch and fastfetch. Supports Linux and Windows.

Features

  • Fast & Lightweight: Minimal dependencies, written in Zig.
  • Cross-Platform:
    • Linux: Efficiently gathers info via /proc, /sys, and standard utilities.
    • Windows: Native implementation using Win32 APIs, Registry, and WMI.
  • Comprehensive Info: Displays OS, Kernel, Host, CPU, GPU, Memory, Disk, Network, Battery, and more.
  • Customizable: Supports --no-logo and --no-color.

Construction & Usage

Building from source

Requirements: Zig 0.15+

# Build release executable
zig build -Doptimize=ReleaseSafe

# Located at:
# Linux:   ./zig-out/bin/zigfetch
# Windows: .\zig-out\bin\zigfetch.exe

Running

# Run directly during development
zig build run

# Run with arguments
zig build run -- --no-logo

Structure

  • src/main.zig: Application entry point and argument parsing.
  • src/modules/: Platform-specific information collectors.
  • src/render.zig: ASCII art and text rendering logic.

License

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages