Skip to content
OpenMouse-ProjectPublic

About

OpenMouse desktop app (GPUI).

Resources

Stars

153 stars

Watchers

0 watching

Forks

Repository files navigation

OpenMouse Desktop

A fast, native, open-source desktop app for configuring gaming mice and keyboards.

Built with GPUI and Rust on top of @openmouse/protocol and @openmouse/keyboard-protocol.

Latest Release License Windows macOS Linux


OpenMouse Desktop Overview

Features

  • 100+ Gaming Mice & Keyboards — Powered by @openmouse/protocol (109+ mouse drivers) and @openmouse/keyboard-protocol, covering DPI stages, polling rate, lift-off distance, motion sync, macros, button remapping, onboard profiles, HE actuation / rapid trigger, and lighting.
  • Native Performance — GPU-accelerated Rust UI via GPUI with direct native HID access and an embedded QuickJS driver runtime. No Electron, no background bloat.
  • Automatic Game Profiles — Detects installed Steam, Epic, and Proton/Wine games and automatically switches mouse settings when you launch a game.
  • Marketplace & Theme Studio — Browse and install community CSS themes or design your own in the built-in visual Theme Studio with live app preview, color pickers, and synced CSS editing.
  • Cross-Platform Tray & Updates — System tray with live battery status on Windows, macOS, and Linux (StatusNotifierItem), plus SHA-256 verified automatic in-app updates across Windows, macOS, and Linux.
  • Safe & Transparent — Re-reads device state after writes, asks before destructive resets, and keeps serial numbers and personal paths out of local logs.

Screenshots

Device Tuning & Per-Game Profiles Automatic Game Detection
Per-game device performance tuning Games library with running game detection
Community Theme Marketplace Visual Theme Studio
Community CSS Theme Marketplace OpenMouse Desktop Theme Studio

Download & Install

Windows

Download and run the installer from the latest release:

macOS

Download the disk image and drag OpenMouse.app to Applications:

Linux

x86_64 portable build (compiled on Ubuntu 22.04 / glibc 2.35, compatible with Ubuntu 22.04+, Debian 12+, Fedora, Arch/CachyOS, and openSUSE).

Run the interactive CLI installer — it detects your distro (pacman, apt, dnf, zypper), installs missing runtime libraries, verifies the SHA-256 checksum, sets up the mouse-only udev rule so no root is needed at runtime, and adds an app-menu launcher:

curl -fsSL https://raw.githubusercontent.com/OpenMouse-Project/Desktop/main/install-linux.sh | bash

Pass flags after -- (e.g. --autostart, --system, --tag v1.1.2, --uninstall, or --help):

curl -fsSL https://raw.githubusercontent.com/OpenMouse-Project/Desktop/main/install-linux.sh | bash -s -- --autostart

Or download openmouse-desktop-linux-x86_64.tar.gz and its .sha256 directly from GitHub Releases. Re-run the installer anytime to update.


Project Layout

Path Purpose
gpui/ Native GPUI desktop app (gpui/js/ holds the bundled TypeScript driver bridge, layouts, and game profiles; gpui/installer/ builds the Windows setup exe).
crates/openmouse-hid Native cross-platform HID transport.
crates/openmouse-presence Discord Rich Presence integration.
marketplace-worker/ Cloudflare Worker + R2 backend for community Marketplace themes and Discord OAuth publishing.
public/ games.json catalog and fallback device artwork.
install-linux.sh Portable Linux x86_64 CLI installer.

Building from Source

Requires Rust and Node.js.

npm ci                 # installs esbuild + protocol drivers (used by gpui/build.rs)
cd gpui
cargo run              # debug build
cargo test
cargo build --release

Profiling note: Debug builds keep ~3× the resident memory of optimized builds. For realistic memory/CPU measurements, build the CI profile:

cargo build --profile ci
./target/ci/openmouse-gpui

UI testing without hardware: Set OPENMOUSE_MOCK=slx (or ulx, x3, comma-separated; append ! to hide real devices) to populate mock devices.

Releases are cut by pushing a v*.*.* tag (see .github/workflows/release.yml).


Roadmap & Engineering Checklist (click to expand)

The goal is to support every device in the mouse and keyboard protocols with its controls, and to let the app update itself cleanly across platforms.

Mice

@openmouse/protocol 0.62.0 has 109 driver entries. The app picks them up automatically, but each control has to be wired in by hand.

  • Edit DPI stages (value, X and Y, count, colour, active stage) on the 48 drivers that can write them; six write-only SteelSeries drivers stay read-only
  • Wire up the settings that need no editor of their own: 32 of 618 driver setting methods have no control
  • Macro editors (ATK, K'snake, WALLHACK, Xiaomi) and Xiaomi keyboard shortcuts
  • Names (Logitech, Finalmouse profiles), Logitech stored DPI stages and bunny hop, SteelSeries button maps and proximity
  • DPI on the Instant A825, and separate axes on Incott
  • Not possible yet, for want of support in the protocol library:
    • LEOBOG macros: the driver refuses uploads
    • Finalmouse profile contents: the units of two fields are unconfirmed
  • Every other setter without a control is internal or duplicates one that exists
  • Live magnetic button travel, Keychron Nape key and dial remapping, and factory or button resets where a driver has them
  • Wooting needs nothing here: it is a keyboard, and is found as one
  • Check each brand on real hardware or a mock, and track which are verified

Keyboards

Keyboards come from @openmouse/keyboard-protocol 1.8.0. Each shows what it reports about itself. Wuque Studio boards can also change polling rate, per-key actuation and rapid trigger sensitivity, key assignments and lighting (checked on a BABAO60 HE).

  • Detect keyboards using its driver registry
  • Detect VIA boards (not yet tried on one)
  • Add keyboard cards and pages to the UI
  • Build shared controls, as each driver allows:
    • Actuation, rapid trigger sensitivity, key remapping, layers and lighting (Wuque Studio)
    • Switching rapid trigger on and off, which needs the Wuque mode values
    • Profiles, macros and advanced keys
    • The same for other brands, including VIA remapping (needs each board's definition file)
  • Support each driver:
    • Wooting
    • Razer
    • Logitech
    • SteelSeries
    • Keychron
    • ATK
    • MCHOSE
    • Glorious
    • Arbiter Studio
    • Wuque Studio
    • Kochi
    • VIA
  • Add keyboard mocks and tests

Desktop app updates

  • Publish releases with SHA-256 checksums (latest.json)
  • Download the installer inside the app, with progress
  • Verify its SHA-256 before running it
  • Close the app, install and relaunch (Windows + macOS automatic .app swap)
  • Handle failed or interrupted updates
  • Code-sign the Windows build
  • Sign and notarize macOS .dmg builds (currently ad-hoc signed)
  • Fix "View release" on macOS
  • Add an automatic updates setting

Logging and crash reporting

  • Write log files with a size limit, including device connections, failed reads and writes, and update checks
  • Capture errors from the embedded JavaScript drivers
  • Add a panic handler that saves a crash report with the app version, OS and backtrace
  • Offer to show or export the report on the next launch; send nothing without the user's consent
  • Add an "Open logs folder" button
  • Keep serial numbers and personal file paths out of logs and reports
  • Keep function names in release backtraces

Safe device writes

  • Show an error when a write fails or is unsupported
  • Re-read the setting after a write, so the UI shows what the device has
  • Ask for confirmation before resets and other risky changes
  • Check writes and read-backs on real hardware, brand by brand

Report my device

  • Add a "Report my device" button for hardware we do not own
  • Export the vendor and product IDs, HID descriptors and app version, without serial numbers
  • Show the report to the user before anything is shared

Linux

  • Build and run the app on Linux
  • Get HID access without root, with udev rules
  • System tray (ksni), Steam/Proton game detection, and autostart
  • Add a Linux build workflow
  • Package it and include it in every stable release (openmouse-desktop-linux-x86_64.tar.gz)
  • Automatic in-app self-updates on Linux (extracts verified tarball, atomically swaps the binary, and relaunches)

License

Licensed under AGPL-3.0-or-later.

About

OpenMouse desktop app (GPUI).

Resources

Stars

153 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages