A lightweight, cross-platform system information tool written in C++ that displays your system configuration in a clean, colorful format.
( (
) )
........
| |]
\ /
`----'
- 🖥️ 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
- 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
- GCC or Clang compiler with C++11 support
- Standard utilities:
lsb_release,free,df,lspci(optional, for better detection)
- MSVC, MinGW, or any C++ compiler supporting Windows API
- Windows 7 or later (for full color support)
g++ -std=c++11 main.cpp -o mochafetch
./mochafetchg++ -std=c++11 main.cpp -o mochafetch.exe
mochafetch.exeOr using MSVC:
cl /EHsc main.cpp
main.exeAfter building, you can move the binary to a location in your PATH:
sudo mv mochafetch /usr/local/bin/Move mochafetch.exe to a directory in your system PATH, or add the current directory to PATH.
Simply run the executable:
mochafetchMochafetch 0.2 - Codename: Caramel Macchiato
- Package detection supports dpkg (Debian/Ubuntu), pacman (Arch), and rpm (Fedora/RHEL)
- Resolution detection requires X11 (
xdpyinfoorxrandr) - Desktop environment detection uses
$XDG_CURRENT_DESKTOPorwmctrl
- Shell defaults to
cmd.exe - Package management information not available
- Desktop environment always shows "Explorer"
- Disk usage calculation is currently limited
Contributions are welcome! Feel free to submit issues or pull requests.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Inspired by other system information tools like neofetch and fastfetch.
Brew your system info, one fetch at a time ☕