Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Shell scripts must stay LF even on Windows checkouts — a CRLF line ending
# Shell scripts must stay LF even on Windows checkouts - a CRLF line ending
# breaks the `#!/bin/sh` shebang and the deb/rpm maintainer scripts (bundled
# by tauri-bundler) fail to run on the Linux CI / install hosts.
*.sh text eol=lf
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ Built with [GPUI](https://www.gpui.rs/) and Rust on top of [`@openmouse/protocol

## Features

- **100+ Gaming Mice & Keyboards** — Powered by [`@openmouse/protocol`](https://github.com/OpenMouse-Project/mouse-protocol) (109+ mouse drivers) and [`@openmouse/keyboard-protocol`](https://github.com/OpenMouse-Project/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.
- **100+ Gaming Mice & Keyboards** - Powered by [`@openmouse/protocol`](https://github.com/OpenMouse-Project/mouse-protocol) (109+ mouse drivers) and [`@openmouse/keyboard-protocol`](https://github.com/OpenMouse-Project/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

Expand All @@ -52,7 +52,7 @@ 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:
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:

```bash
curl -fsSL https://raw.githubusercontent.com/OpenMouse-Project/Desktop/main/install-linux.sh | bash
Expand Down
10 changes: 5 additions & 5 deletions crates/openmouse-hid/src/hid_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//!
//! Why this exists: `@openmouse/protocol`'s driver registry matches devices
//! with `Client.isSupported(device)`, and every one of those predicates reads
//! `device.collections` — the WebHID view of a device's collections and the
//! `device.collections` - the WebHID view of a device's collections and the
//! report ids each declares. A browser populates it; hidapi does not. Without
//! it the app cannot use the protocol library's own registry, which is why
//! `src/native-hid/brands.ts` grew a hand-maintained copy of the registry
Expand Down Expand Up @@ -60,7 +60,7 @@ pub struct ReportLayout {

impl ReportLayout {
/// Buffer size for reading `report_id` on this interface, including the
/// report-id byte, or `None` when the interface does not declare it — the
/// report-id byte, or `None` when the interface does not declare it - the
/// distinction a caller needs to skip an interface that cannot answer.
pub fn feature_buffer_len(&self, report_id: u8) -> Option<usize> {
self.feature_bits.get(&report_id).map(|bits| {
Expand All @@ -71,7 +71,7 @@ impl ReportLayout {
}

/// True when this interface declares `report_id` as an output or feature
/// report — i.e. a command for it could be sent here.
/// report - i.e. a command for it could be sent here.
pub fn declares(&self, report_id: u8, feature: bool) -> bool {
if feature {
self.feature_bits.contains_key(&report_id)
Expand All @@ -86,7 +86,7 @@ impl ReportLayout {
self.input_bits.contains_key(&0)
}

/// True when this interface declares `report_id` as an input report — i.e.
/// True when this interface declares `report_id` as an input report - i.e.
/// an answer to it could arrive here. The direction a *response* uses is
/// not always the direction the request used, so reads consult this
/// separately from `declares`.
Expand Down Expand Up @@ -205,7 +205,7 @@ pub fn parse_report_descriptor(bytes: &[u8]) -> Result<(Vec<CollectionInfo>, Rep
(0, 10) => {
// Collection start.
// If the descriptor set Usage Minimum/Maximum instead of Usage
// before Collection, `usages` is empty — keep the active global
// before Collection, `usages` is empty - keep the active global
// usage page rather than zeroing it out.
let (usage_page, usage) = match usages.first().copied() {
Some(full) => ((full >> 16) as u16, full as u16),
Expand Down
Loading
Loading