Crystal Studio Labs · v1.2.0
The professional TUI bridge for desktop entry management. Native distribution theming, performance hooks, and universal package support. Zero dependencies.
Why MenuForge
One utility to rule the Linux ecosystem. Engineered for portability and surgical precision.
menuforge-lib.sh — making the suite extensible and consistent across scripts.Usage
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
A detailed breakdown of MenuForge's modular components and system integration logic.
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.
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).
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.
| Function | Returns | Detailed Description |
|---|---|---|
detect_nvidia() | HAS_NVIDIA | Conducts 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_MANAGER | Interrogates the system binary path to route installation commands through apt, dnf, zypper, or pacman (including AUR support). |
get_deps() | DEPS | A 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() | PRIMARY | A 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) | void | Renders a standardized, high-fidelity ASCII header with consistent project metadata across all interactive modules. |
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.
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.
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.
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.
| Priority | Source | Description |
|---|---|---|
| 1. Manual Override | gum.env.conf | Users can define custom HEX codes in ~/.config/omarchy/ for complete visual control. |
| 2. DE Integration | kreadconfig5 | On KDE Plasma, MenuForge interrogates the system API to adopt the user's active Accent Color. |
| 3. OS Branding | /etc/os-release | Fallback to official colors: Arch Blue, Mint Green, Ubuntu Orange, or Fedora Blue based on distribution ID. |
The menuforge binary serves as the primary system entry point. It intelligently routes CLI arguments to their respective technical modules.
| Flag | Description |
|---|---|
(no args) | Initiates the primary high-fidelity TUI environment. |
--doctor | Triggers a four-phase system integrity audit (Env, Deps, HW, Shortcuts). |
--version, -v | Displays the active system version and official authorship credits. |
--help, -h | Renders the comprehensive technical usage and example reference. |
Ecosystem
MenuForge is engineered to identify and adapt to the native architecture of every major Linux family.