Skip to content

mochacinno-dev/Mochafetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mochafetch ☕

A lightweight, cross-platform system information tool written in C++ that displays your system configuration in a clean, colorful format.

      ( (
       ) )
    ........
    |      |]
    \      /
     `----'

Features

  • 🖥️ Cross-platform support - Works on both Linux and Windows
  • 🎨 Colorful output - ANSI color support for better readability
  • Lightweight - Minimal dependencies, fast execution
  • 📊 Comprehensive info - Displays OS, kernel, uptime, hardware specs, and more

System Information Displayed

  • Operating System
  • Hostname
  • Kernel Version
  • System Uptime
  • Installed Packages (Linux only)
  • Shell
  • Screen Resolution
  • Desktop Environment / Window Manager
  • CPU Model
  • GPU Information
  • Memory Usage
  • Disk Usage

Requirements

Linux

  • GCC or Clang compiler with C++11 support
  • Standard utilities: lsb_release, free, df, lspci (optional, for better detection)

Windows

  • MSVC, MinGW, or any C++ compiler supporting Windows API
  • Windows 7 or later (for full color support)

Building

Linux

g++ -std=c++11 main.cpp -o mochafetch
./mochafetch

Windows

g++ -std=c++11 main.cpp -o mochafetch.exe
mochafetch.exe

Or using MSVC:

cl /EHsc main.cpp
main.exe

Installation

After building, you can move the binary to a location in your PATH:

Linux

sudo mv mochafetch /usr/local/bin/

Windows

Move mochafetch.exe to a directory in your system PATH, or add the current directory to PATH.

Usage

Simply run the executable:

mochafetch

Version

Mochafetch 0.2 - Codename: Caramel Macchiato
⚠️ Alpha Version - Unstable

Platform-Specific Notes

Linux

  • Package detection supports dpkg (Debian/Ubuntu), pacman (Arch), and rpm (Fedora/RHEL)
  • Resolution detection requires X11 (xdpyinfo or xrandr)
  • Desktop environment detection uses $XDG_CURRENT_DESKTOP or wmctrl

Windows

  • Shell defaults to cmd.exe
  • Package management information not available
  • Desktop environment always shows "Explorer"
  • Disk usage calculation is currently limited

Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Acknowledgments

Inspired by other system information tools like neofetch and fastfetch.


Brew your system info, one fetch at a time

About

A lightweight, cross-platform system information tool written in C++ that displays your system configuration in a clean, colorful format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors