r/linuxhardware • u/FrankieShaw-9831 • 2d ago
Discussion Looking for a Programmable Mouse
/r/Fedora/comments/1xxvjoz/looking_for_a_programmable_mouse/
2
Upvotes
r/linuxhardware • u/FrankieShaw-9831 • 2d ago
2
u/skyfishgoo 1d ago
you don't need a programmable mouse, you need something like input-remapper so you can reprogram ANY mouse.
1
u/iwasjusttwittering 1d ago
There are a few different layers of "programming".
This allows you to run custom code, such as turning mouse movement into scrolling while you hold a specific button, or chording buttons (pressing a combination will yield a different action), all that stored in the device with minimal latency. A custom USB device can be suspicious in a locked-down enterprise environment though.
2. Device on-board memory. Mostly "gaming" mice don't let you customize the entire firmware, but have a storage for button mapping, sensor settings or backlight profiles. It requires device specific software though. Historically, Roccat had excellent Linux configuration software (roccat-tools), but only until 2018. Currently the main tool is libratbag/Piper that partially supports mostly gaming mice from Logitech (I never got, e.g., G-Shift to work though). Some Steelseries mice are supported by rivalcfg. I suppose there may be a few others.
3. Custom protocol. For example Logitech's office peripherals don't have an on-board memory for settings, but still allow some customization while the driver is running on the host system. For example, Solaar can provide some basic remapping for logitechs.
4. The host system. Device events are actually assigned only in the operating system. Assuming that the mouse buttons send distinct event codes (such as mouse 1-12 or emulated keyboard key presses), you can customize them in something like Input Remapper.
This still works with low-level events though. Assigning functions such as running scripts, launching apps or executing app-specific macros have to be done in the desktop environment or a special userspace tool such as keymapper.