Skip to main content

Logitech G13 Linux driver with macro support, RGB control, and LCD display management

Project description

G13 Linux

PyPI Downloads Python CI License: MIT

Python userspace driver for the Logitech G13 Gaming Keyboard on Linux.

Features

  • 22 Programmable G-Keys with macro support
  • RGB Backlight Control with full color range
  • 160x43 LCD Display with custom text and graphics
  • Thumbstick Support with configurable zones
  • Profile Management for different applications
  • PyQt6 GUI for visual configuration

Installation

# From PyPI
pip install g13-linux

# Or with pipx (recommended for CLI tools)
pipx install g13-linux

System Dependencies

# Ubuntu/Debian
sudo apt install libhidapi-hidraw0

# Fedora
sudo dnf install hidapi

udev Rules (Required)

# Allow non-root access to G13
sudo cp udev/99-logitech-g13.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger

Usage

CLI

g13-linux --help              # Show help
g13-linux --version           # Show version
g13-linux                     # Run the input daemon
g13-linux run                 # Run the input daemon (explicit)

# LCD control
g13-linux lcd "Hello World"   # Display text on LCD
g13-linux lcd --clear         # Clear the LCD

# Backlight control
g13-linux color red           # Set backlight to red
g13-linux color "#FF6600"     # Set backlight to hex color
g13-linux color 255,128,0     # Set backlight to RGB

# Profile management
g13-linux profile list        # List available profiles
g13-linux profile show eve    # Show profile details
g13-linux profile load eve    # Load and apply a profile
g13-linux profile create new  # Create a new profile
g13-linux profile delete old  # Delete a profile

GUI

g13-linux-gui         # Launch the configuration GUI

Python API

from g13_linux import open_g13, G13Mapper

# Open device and start mapping
device = open_g13()
mapper = G13Mapper()

# Read events
while True:
    data = read_event(device)
    if data:
        mapper.handle_raw_report(data)

Hardware

Component Status
G1-G22 Keys ✅ Working
M1-M3 Mode Keys ✅ Working
MR Key ✅ Working
Thumbstick ✅ Working
LCD Display ✅ Working
RGB Backlight ✅ Working

Note: Button input requires either:

  • udev rules for hidraw access, or
  • sudo with libusb mode (g13-linux-gui --libusb)

Linux kernel 6.19+ will include native hid-lg-g15 support for G13.

Development

# Clone and setup
git clone https://github.com/AreteDriver/G13_Linux.git
cd G13_Linux
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check src/ tests/

License

MIT License - see LICENSE for details.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

g13_linux-1.3.0.tar.gz (68.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

g13_linux-1.3.0-py3-none-any.whl (62.5 kB view details)

Uploaded Python 3

File details

Details for the file g13_linux-1.3.0.tar.gz.

File metadata

  • Download URL: g13_linux-1.3.0.tar.gz
  • Upload date:
  • Size: 68.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for g13_linux-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e121aaf111ee7f964c58c0532ebcdfd0d5de1171a50d862501b26016392c17cd
MD5 46a55dc0c03853983bc8aff6738a2464
BLAKE2b-256 15bd0788d00f24de6e1ba464fc8f5eba39e5217cfe8289d313b3b628f8dc5dff

See more details on using hashes here.

Provenance

The following attestation bundles were made for g13_linux-1.3.0.tar.gz:

Publisher: release.yml on AreteDriver/G13_Linux

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file g13_linux-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: g13_linux-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 62.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for g13_linux-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d83c4b96e5947f8a78c346cad57f8d98c645bb353be4760f93a0ed58fa2b14b
MD5 724878ee273ed36b5964513fbd079062
BLAKE2b-256 4d533cd742d7e9b905d1e3fe7e631f5b3d46d89dfcfad3d58a73ab0c32b6d277

See more details on using hashes here.

Provenance

The following attestation bundles were made for g13_linux-1.3.0-py3-none-any.whl:

Publisher: release.yml on AreteDriver/G13_Linux

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page