antiX Linux & FocusWM: The Low-End Powerhouse
Context
Reviving legacy hardware requires more than just a 'light' OS; it requires an architecture that refuses to waste a single CPU cycle. I needed a setup for machines with limited RAM and aging silicon that could still perform like a modern workstation for development and terminal-centric tasks.
Decision
Deploy antiX Linux as the system foundation, paired with FocusWM—a custom-built window manager transitioned from C (v1) to a memory-safe, high-performance Rust implementation (v2)—to create an ultra-minimal, keyboard-driven environment.
Alternatives Considered
Lubuntu / Xubuntu
- User-friendly, out-of-the-box experience
- Broad hardware driver support
- Modern LXQt/XFCE is too heavy for <1GB RAM machines
- Relies on systemd services that drain background resources
Suckless DWM (Standard)
- Extremely mature and minimal C codebase
- Industry standard for minimalism
- Patching is manual and error-prone
- Lacks the modern memory safety and concurrency of Rust
Reasoning
antiX provides a systemd-free, Debian-stable base that is incredibly lean. By building and using FocusWM, I move the 'heavy lifting' from the CPU to the logic of the window manager itself. While v1 proved that C could deliver raw speed, the v2 transition to Rust ensures memory safety and modern performance without the overhead of a desktop environment.
The “Old Silicon” Rescue Strategy
When a machine operates with limited RAM, every background process is an enemy. This setup treats hardware constraints as a design philosophy through two primary layers:
1. antiX: The Systemd-Free Foundation
Most modern Linux distributions utilize systemd, which introduces multiple background daemons. antiX utilizes sysVinit or runit, resulting in:
- Lightning Fast Boot: Reaching the login prompt in under 15 seconds on ancient mechanical drives.
- Minimal Idle Usage: Idle RAM usage often sits at ~80MB to 120MB, leaving the rest of the system free for heavy applications like compilers or browsers.
2. FocusWM: Evolution from C to Rust
FocusWM is the core of this workflow, designed to handle window management with zero unnecessary abstractions.
- The C Origins (v1): Developed in C for absolute proximity to the X11 protocol, focusing on a “Suckless” philosophy but with a more intuitive configuration flow.
- The Rust Rebirth (v2): By rewriting the manager in Rust, FocusWM v2 gains memory safety and fearlessness in concurrency. It handles window tiling and event looping with modern efficiency, ensuring that the window manager itself never becomes a source of system crashes or memory leaks.
3. Terminal-First Workflow
To maintain speed, this setup replaces heavy GUI apps with CLI alternatives:
- File Management:
nnnorrangerfor blazing-fast navigation. - System Monitoring:
htoporbtopto keep a constant eye on the thin resource margins. - Development: Neovim, integrated directly into the FocusWM tiling logic for a seamless IDE-like experience without the Electron-based bloat.
Performance Gains on Legacy Hardware
- Maximized Real Estate: On low-resolution screens (e.g., 1366x768), FocusWM’s lack of title bars and borders maximizes every pixel for actual work.
- CPU Longevity: By eliminating compositor-heavy effects like shadows and transparency, the CPU remains cool, preventing thermal throttling on older chips.
Results & Impact
- Hardware Longevity: A “junk” laptop from 2011 has been transformed into a dedicated, distraction-free writing and coding station.
- Rock-Solid Stability: The transition to FocusWM v2 (Rust) has virtually eliminated the segfaults common in experimental C-based window managers.
- Input Speed: Transitioning to a 100% keyboard-driven workflow has increased navigation speed by an estimated 40% compared to mouse-heavy interfaces.
The Road Ahead
With FocusWM v2 now stable in Rust, I am exploring Wayland support via the Smithay library to future-proof the project, while keeping the antiX base for its unparalleled lightness on older hardware.