Crystal Studio Labs · v1.2.0

Forge Your
Desktop Entries
on Linux.

The professional TUI bridge for desktop entry management. Native distribution theming, performance hooks, and universal package support. Zero dependencies.

$ git clone https://github.com/Crystal-Studio-Labs/MenuForge.git && ./install.sh copy
v1.2.0-Stable MIT Bash/Gum Arch/Mint/Fedora NVIDIA Active
menuforge --live

Why MenuForge

Hardware-aware.
Distro-agnostic.

One utility to rule the Linux ecosystem. Engineered for portability and surgical precision.

01🚀
Universal Pkg
Native support for pacman, apt, dnf, and zypper. Automatically detects and utilizes AUR helpers like yay or paru.
02🎨
Native Themes
Hybrid engine syncs TUI colors with host OS branding and active DE accents — including KDE Plasma Accent Colors.
03🎮
Optimized Hooks
1-click integration for GameMode, MangoHud, Gamescope, and NVIDIA Prime. Optimized launch parameters for every binary.
04🛡️
Safe Forging
Isolated metadata management ensures system applications remain clean and traceable. Non-destructive entry handling.
05🔍
Auto-Hardware
Specifically identifies NVIDIA VGA/3D controllers and only injects prime-run hooks if hardware is present.
06📦
Core Library
Modular architecture powered by menuforge-lib.sh — making the suite extensible and consistent across scripts.

Usage

Get started in seconds.
Zero configuration.

Run the universal installer or use the core library programmatically.

The recommended way to deploy MenuForge. This script conducts a comprehensive system audit, configures native repositories for the gum TUI framework, and links the modular core library to your local environment.

# Clone and initiate the deployment architecture
$ git clone https://github.com/Crystal-Studio-Labs/MenuForge.git
$ cd MenuForge && ./install.sh

# Launch the technical control center
$ menuforge

Developers can leverage the menuforge-lib.sh module to build custom distribution-aware tools. This library provides standardized hooks for hardware interrogation, package routing, and high-fidelity UI rendering.

source "menuforge-lib.sh"

# Initialize hardware and OS intelligence layers
detect_nvidia
detect_pkg_manager
detect_theme

# Utilize standardized technical UI components
banner "MY_MODULE" "v1.0.0"

MenuForge supports a set of high-level flags for rapid system interaction and infrastructure auditing. These commands provide a fast, non-interactive alternative to the main controller.

# Conduct a system-wide hardware and dependency audit
$ menuforge --doctor

# Verify system version and development metadata
$ menuforge --version

# Access the technical help reference
$ menuforge --help

# Launch the primary interactive TUI (No arguments)
$ menuforge

Architecture

Full technical reference.

A detailed breakdown of MenuForge's modular components and system integration logic.

Installation #

MenuForge utilizes a universal deployment strategy designed to work across the major Linux families (Arch, Debian, Fedora, OpenSUSE). The installer automatically identifies the host's package manager and bootstraps the environment by configuring official repositories for the gum TUI framework.

./install.sh --needed

The deployment process involves three distinct phases: Environment Validation (Hardware/OS detection), Dependency Resolution (Dynamic package mapping), and Binary Linkage (Deploying scripts to ~/.local/bin and generating XDG-compliant desktop entries).

Core Functions #

The architectural foundation of MenuForge is menuforge-lib.sh. This shared module ensures that all suite components—the installer, the dependency manager, and the main TUI—operate on the same hardware intelligence and theming logic. It eliminates code redundancy and provides a unified API for third-party expansion.

FunctionReturnsDetailed Description
detect_nvidia()HAS_NVIDIAConducts a deep scan of the PCI bus using lspci -nn to identify proprietary NVIDIA 3D controllers, essential for hybrid graphics orchestration.
detect_pkg_manager()PKG_MANAGERInterrogates the system binary path to route installation commands through apt, dnf, zypper, or pacman (including AUR support).
get_deps()DEPSA hardware-aware resolver that returns a curated list of high-performance libraries (mangohud, gamescope, etc.) specifically mapped to the host's OS naming conventions.
detect_theme()PRIMARYA multi-tiered engine that attempts to sync TUI colors with user-defined overrides, KDE Plasma's active accent colors, or official distribution branding.
banner(title, sub)voidRenders a standardized, high-fidelity ASCII header with consistent project metadata across all interactive modules.

TUI Application #

The main menuforge script provides a terminal-native control center for desktop entry lifecycle management. It uses recursive file picking to locate binaries and allows users to inject multi-layered performance hooks (like Gamescope resolution virtualization) without editing raw text files. Every link generated is metadata-tagged for clean auditing and one-click removal.

menuforge # Initiates the system controller

Hardware Engine #

Unlike simple generators, MenuForge is hardware-aware. The Hardware Engine prevents infrastructure bloat by only offering optimizations that your hardware can actually execute. For example, the NVIDIA Prime Run layer is hidden on single-GPU systems to prevent configuration errors.

lspci -nn | grep -iE "vga|3d" | grep -iq "nvidia"

This surgical detection logic ensures that generated .desktop files are optimized for the specific machine they were forged on, leading to higher stability in gaming and professional workloads.

Theme Engine #

MenuForge features a sophisticated hybrid theme engine designed to make the TUI feel like a native part of your operating system. It respects the visual identity of the host distribution while allowing for deep customization.

PrioritySourceDescription
1. Manual Overridegum.env.confUsers can define custom HEX codes in ~/.config/omarchy/ for complete visual control.
2. DE Integrationkreadconfig5On KDE Plasma, MenuForge interrogates the system API to adopt the user's active Accent Color.
3. OS Branding/etc/os-releaseFallback to official colors: Arch Blue, Mint Green, Ubuntu Orange, or Fedora Blue based on distribution ID.

CLI Reference #

The menuforge binary serves as the primary system entry point. It intelligently routes CLI arguments to their respective technical modules.

FlagDescription
(no args)Initiates the primary high-fidelity TUI environment.
--doctorTriggers a four-phase system integrity audit (Env, Deps, HW, Shortcuts).
--version, -vDisplays the active system version and official authorship credits.
--help, -hRenders the comprehensive technical usage and example reference.

Ecosystem

Distribution Support.
Verified Stability.

MenuForge is engineered to identify and adapt to the native architecture of every major Linux family.

Arch
Arch / Endeavour
AURPacmanRolling
Mint
Linux Mint
APTStableCinnamon
Fedora
Fedora / RHEL
DNFRPMModern
OpenSUSE
OpenSUSE
ZypperYaSTTumbleweed
Ubuntu
Ubuntu
APTLTSPPA Ready
Debian
Debian
APTStableServer