Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

Mouser

> 开发工具
Open source

A lightweight, open-source, fully local alternative to Logitech Options+ for remapping Logitech HID++ mice.

5.0K stars0 likes2 views
WebsiteGitHub

About

A lightweight, open-source, fully local alternative to Logitech Options+ for remapping Logitech HID++ mice.

Mouser — Logitech Mouse Remapper

English | 中文文档

A lightweight, open-source, fully local alternative to Logitech Options+ for remapping Logitech HID++ mice. The current best experience is on the MX Master and MX Anywhere families, with detection and fallback UI support for additional Logitech models.

No telemetry. No cloud. No Logitech account required.


Contents

  • Download & Run
  • Screenshots
  • Features
  • Device coverage
  • Default mappings
  • Available actions
  • Build from source
  • Limitations
  • Roadmap
  • Contributing
  • Acknowledgments
  • License

Download & Run

No install required. Just download, extract, and double-click.


  1. Open the latest release page.
  2. Download the zip for your platform:
    • Windows — Mouser-Windows.zip
    • macOS (Apple Silicon) — Mouser-macOS.zip
    • macOS (Intel) — Mouser-macOS-intel.zip
    • Linux — Mouser-Linux.zip
  3. Extract it anywhere (Desktop, Documents, /Applications, wherever).
  4. Run the executable: Mouser.exe, Mouser.app, or ./Mouser.

That's it. The app opens, drops a tray / menu-bar icon, and starts remapping immediately.

What to expect on first launch

  • The settings window opens to the device-aware Mouse & Profiles page.
  • A tray icon appears (next to the clock on Windows / Linux, in the menu bar on macOS).
  • Closing the window keeps Mouser running in the tray. Right-click the tray icon → Quit Mouser to fully exit.
  • Mouser remembers language and startup behavior between runs.

First-time notes

  • Windows SmartScreen may warn the first time — click More info → Run anyway.
  • Logitech Options+ must not be running. Both apps fight over HID++ access; quit Options+ before launching Mouser.
  • macOS asks for Accessibility permission so the event tap can intercept mouse events. See readme_mac_osx.md for the full setup walkthrough.
  • Linux needs read access to /dev/hidraw*, /dev/input/event*, and write access to /dev/uinput. Run the bundled helper once after extracting:
    bash
    cd /path/to/extracted/Mouser
    ./install-linux-permissions.sh
    Reconnect the mouse, then relaunch.
  • Config is saved automatically to:
    • %APPDATA%\Mouser\config.json (Windows)
    • ~/Library/Application Support/Mouser/config.json (macOS)
    • ~/.config/Mouser/config.json (Linux)
  • Logs rotate automatically (5 × 5 MB) under %APPDATA%\Mouser\logs, ~/Library/Logs/Mouser, or $XDG_STATE_HOME/Mouser/logs.

Screenshots

Mouse & Profiles Point & Scroll

Features

Button remapping

  • Remap any programmable button — middle click, gesture button, back, forward, mode shift, DPI switch (MX Vertical), and horizontal scroll.
  • Mouse-to-mouse remap — bind any button to act as left, right, middle, back, or forward click.
  • Per-application profiles — Mouser auto-switches mappings when the foreground app changes (e.g. Chrome vs. VS Code).
  • Custom keyboard shortcuts — record any key combination (e.g. Ctrl+Shift+P) directly in the UI.
  • 40+ built-in actions — navigation, browser, editing, media, scroll-mode, and DPI shortcuts that adapt per platform.

Device control

  • DPI / pointer speed — slider from 200 to the device max (8000 on MX Master) with quick presets, plus a Cycle DPI Presets action you can map to a button.
  • Smart Shift — toggle Logitech's ratchet ↔ free-spin scroll mode (HID++ 0x2111), with a sensitivity threshold and a mappable Toggle SmartShift action.
  • Switch scroll mode — bind a button to flip ratchet / free-spin without opening the UI; defaults to mode-shift.
  • Scroll direction inversion — independent toggles for vertical and horizontal scroll.
  • Gesture button + swipe actions — tap for one action, swipe up/down/left/right for four others.

Cross-platform

  • Windows, macOS, and Linux — native hooks per platform (WH_MOUSE_LL, CGEventTap, evdev + uinput).
  • Native Intel and Apple Silicon macOS builds — separate Mouser-macOS-intel.zip and Mouser-macOS.zip artifacts; the menu-bar app runs as LSUIElement (no Dock icon).
  • Resizable UI — main window starts at 1060 × 700 with a 920 × 620 minimum; the mouse diagram and controls reflow as you resize.
  • Start at login — Windows registry key, macOS LaunchAgent, and Linux XDG autostart, with an independent Start minimized option that boots straight into the tray. Linux autostart intentionally waits about 15 seconds after login so Bluetooth / HID devices are usually ready before Mouser restores device settings.
  • Single-instance guard — launching a second copy brings the existing window to the front instead of starting a duplicate.

Smart connectivity

  • Bluetooth and Logi Bolt — both transports are supported on all three platforms; the UI labels the live connection (Logi Bolt only when the receiver PID is positively identified).
  • Auto-reconnection — Mouser watches for power-off / on cycles and rebinds HID++ + the OS mouse hook without a restart; SmartShift settings are replayed on every reconnect (including wake-from-sleep).
  • Live connection status — real-time Connected / Not Connected badge, model name, and active layout in the UI.
  • Device-aware UI — interactive MX Master and MX Anywhere diagrams with clickable hotspots; generic fallback card for other models, with an experimental layout-override picker.

Multi-language UI

  • English / Simplified Chinese / Traditional Chinese — switch instantly, no restart required.
  • Language preference is saved to config.json and restored on next launch.
  • Covers nav, mouse page, settings page, dialogs, system tray / menu bar, and permission prompts.

Privacy first

  • Fully local — config is a plain JSON file, all processing happens on your machine.
  • System tray / menu bar — runs quietly in the background.
  • Zero telemetry, zero cloud, zero account required.

Device coverage

Family / model Detection + HID++ probing UI support
MX Master 4 / 3S / 3 / 2S / MX Master Yes Dedicated interactive per-model layouts
MX Anywhere 3S / 3 / 2S Yes Dedicated interactive per-model layouts
MX Vertical Yes Generic fallback card (with DPI switch button support)
Unknown Logitech HID++ mice Best effort by PID/name Generic fallback card

MX Master and MX Anywhere devices have dedicated visual overlays. Other devices are still detected, show their model name, and can opt into an experimental layout override — button positions just may not line up until a real overlay lands. See CONTRIBUTING_DEVICES.md to add yours.


Default mappings

Button Default action
Back button (XButton1) Alt + Tab (Switch Windows)
Forward button (XButton2) Alt + Tab (Switch Windows)
Middle click Pass-through
Gesture button Pass-through
Gesture swipes (up / down / left / right) Pass-through
Mode shift (scroll click) Switch Scroll Mode (Ratchet / Free Spin)
Horizontal scroll left Browser Back
Horizontal scroll right Browser Forward
DPI switch (MX Vertical) Pass-through

Available actions

Action labels adapt per platform. Windows exposes Win+D and Task View; macOS exposes Mission Control, Show Desktop, App Exposé, and Launchpad; Linux falls back to compositor-native equivalents.

Category Actions
Navigation Alt+Tab, Alt+Shift+Tab, Show Desktop, Previous Desktop, Next Desktop, Task View (Windows), Mission Control / App Exposé / Launchpad (macOS), Page Up / Page Down / Home / End
Browser Back, Forward, Close Tab (Ctrl+W), New Tab (Ctrl+T), Next Tab (Ctrl+Tab), Previous Tab (Ctrl+Shift+Tab)
Editing Copy, Paste, Cut, Undo, Select All, Save, Find
Media Volume Up, Volume Down, Volume Mute, Play / Pause, Next Track, Previous Track
Scroll Switch Scroll Mode (Ratchet / Free Spin), Toggle SmartShift, Cycle DPI Presets
Mouse Left Click, Right Click, Middle Click, Back (Mouse Button 4), Forward (Mouse Button 5)
Custom User-defined keyboard shortcuts (any key combination, captured in the UI)
Other Do Nothing (pass-through)

Build from source

You only need this if you want to hack on Mouser or run a development build. Most users should grab a release zip — see Download & Run.

Common prerequisites

  • Windows 10/11, macOS 12+ (Monterey), or Linux (X11; KDE Wayland for app detection)
  • Python 3.10+ (tested up to 3.14)
  • A supported Logitech HID++ mouse paired via Bluetooth or a USB receiver
  • Logitech Options+ must NOT be running — it conflicts with HID++ access
  • git and a working build toolchain
bash
git clone https://github.com/TomBadash/Mouser.git
cd Mouser
python -m venv .venv
Windows
powershell
.\.venv\Scripts\activate
pip install -r requirements.txt

# Run from source
python main_qml.py

# Or start straight into the tray
python main_qml.py --start-hidden

# Build a portable zip
build.bat                # standard
build.bat --clean        # force clean rebuild

build.bat installs requirements, verifies that hidapi is importable, and packages with PyInstaller. The output lives in dist\Mouser\ — zip the folder and ship it.

To launch a source checkout without a console window, create a shortcut that uses pythonw.exe; see DEVELOPMENT.md.

macOS
bash
source .venv/bin/activate
pip install -r requirements.txt

# Run from source
python main_qml.py
python main_qml.py --start-hidden     # launch directly to menu bar

# Build the native menu-bar bundle
pip install pyinstaller
./build_macos_app.sh

The output is dist/Mouser.app. The script reuses images/AppIcon.icns when present, otherwise generates one from images/logo_icon.png. Signing depends on whether MOUSER_SIGN_IDENTITY is set in the environment:

  • Unset (default): ad-hoc signs with codesign --sign -. Convenient for one-off builds, but the bundle's code identity can change on rebuild, so macOS may ask for Accessibility permission again.
  • Set to a codesigning identity (security find-identity -v -p codesigning to list them — SHA-1 form preferred): signs every nested .dylib / .so / .framework with hardened runtime options, then signs the outer app with the hardened-runtime exceptions at build_resources/Mouser.entitlements. This is a local developer signing path for repeated builds; stable macOS permission behavior depends on keeping the same source, resolved Python interpreter, dependency versions, architecture, signing identity, entitlements, and timestamp policy. A failing codesign --verify --deep --strict check aborts the build.
bash
MOUSER_SIGN_IDENTITY="ABCD1234..." ./build_macos_app.sh   # local signed build
  • This is not a notarized release-signing flow. Public macOS release zips remain ad-hoc signed until a separate Developer ID signing, secure timestamp, notarization, stapling, and Gatekeeper validation workflow exists.
  • Build on the architecture

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonautomationcontrolerfreelinux

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具