Metadata-Version: 2.5
Name: tux-armory
Version: 0.2.0
Summary: Cross-distro Linux power profiles, GPU switching, and hardware controls for gaming laptops
License: MIT
Requires-Python: >=3.11
Provides-Extra: gui
Requires-Dist: pyside6>=6.7; extra == 'gui'
Description-Content-Type: text/markdown

# TuxArmory

[![CI](https://github.com/rhn-ryan/TuxArmory/actions/workflows/ci.yml/badge.svg)](https://github.com/rhn-ryan/TuxArmory/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

TuxArmory is a lightweight, cross-distribution Linux hardware and performance control center designed for gaming laptops and workstations. It provides both an intuitive PySide6 desktop interface and a scriptable command-line utility for managing power profiles, GPU switching, battery health thresholds, keyboard backlighting, and live hardware telemetry.

![TuxArmory Preview](assets/screenshot.png)

## Features

- **Power Profiles**: Seamless switching across Quiet, Balanced, and Performance modes using Linux kernel ACPI (`platform_profile`) and `power-profiles-daemon`.
- **GPU Switching & PRIME Offload**: Hybrid and Integrated GPU management via `supergfxctl`, `envycontrol`, or `system76-power`, plus on-demand dGPU application execution via NVIDIA PRIME render offload.
- **Battery Health Preservation**: Configurable charging limits (60%, 80%, 100%) via standard sysfs battery thresholds, Lenovo IdeaPad conservation mode, and ThinkPad charge stop controls.
- **Keyboard Lighting**: Multi-mode RGB lighting and brightness controls with support for ASUS Aura, OpenRGB, and generic Linux kernel sysfs LED backlights.
- **Hardware Telemetry**: Real-time monitoring of CPU governors, thermal sensors, fan speeds, and NVIDIA GPU statistics (temperatures, power draw, and VRAM utilization).
- **Desktop Integration**: Polkit-authenticated sysfs helper for secure unprivileged tuning, tray menu with background polling, and responsive Qt interface.

## Installation

```sh
# Install base package and CLI
python -m pip install .

# Install with GUI dependencies
python -m pip install '.[gui]'
```

## Desktop & Launcher Setup

Install the desktop entry and system icons:

```sh
data/install-desktop-entry
```

To enable unprivileged battery limit and platform profile updates via PolicyKit:

```sh
sudo ./install-helper.sh
```

## CLI Usage

```sh
# View system hardware status
tux-armory status

# View and set power profile
tux-armory profiles
tux-armory set-profile balanced

# GPU control
tux-armory gpu
tux-armory set-gpu Hybrid

# Set battery charge limit
tux-armory set-charge-limit 80

# Keyboard lighting
tux-armory aura mode "Colour Cycle"
tux-armory aura brightness 3
```

## Architecture

For an overview of the modular backend drivers, sysfs integration, and extension points, see [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
