Libratbag provides ratbagd, a DBus daemon that exposes a generic interface to configure high-end input devices. GUI tools such as Piper talk to it over DBus.
Overview
Libratbag ships ratbagd, a DBus daemon that configures input devices, especially gaming mice, through a hardware-agnostic API. The daemon hides vendor-specific and kernel quirks so applications can adjust device features in a consistent way.
Supported hardware includes mice from Logitech, Etekcity, GSkill, Roccat, and Steelseries, matched through a device database. End users typically interact via a graphical client like Piper, while ratbagctl offers a command-line interface for debugging and development.
The stack splits into ratbagd, which speaks DBus, and libratbag, which implements per-vendor backends and protocols such as Logitech HID++. ratbagd is intended to run as a DBus-activated systemd service after installation, though it can also be started manually as root.
Distribution packages are available for some Linux distributions, and the project can be built with Meson and Ninja. The DBus interface is documented for integrators who want to control devices from their own applications.
Key features
- ratbagd DBus configuration daemon
- Vendor-specific mouse backends
- Device database for known hardware
- Piper GUI integration
- ratbagctl debugging tool
- systemd DBus activation support
- HID++ and vendor protocol support
- Hardware-agnostic device API
Use cases
- Configuring Logitech gaming mice
- Linux desktop pointer customization
- GUI mouse profiles via Piper
- Debugging device protocols
- Supporting multiple gaming peripheral brands